add bump instruction
This commit is contained in:
parent
51955ef09f
commit
9ce1619a59
15
Makefile
15
Makefile
|
@ -1,5 +1,6 @@
|
|||
DOCKER_IMG := datahearth/clear-docker-images
|
||||
GHCR_IMG := ghcr.io/${DOCKER_IMG}
|
||||
VERSION := 0.4.1
|
||||
|
||||
.PHONY: initialize-linux-build
|
||||
initialize-linux-build:
|
||||
|
@ -13,7 +14,7 @@ build-docker:
|
|||
@docker build --tag ${DOCKER_IMG}:${VERSION} .
|
||||
@docker tag ${DOCKER_IMG}:${VERSION} ${GHCR_IMG}:${VERSION}
|
||||
@docker tag ${DOCKER_IMG}:${VERSION} ${DOCKER_IMG}:latest
|
||||
@docker tag ${DOCKER_IMG}:latest ${GHCR_IMG}:latest
|
||||
@docker tag ${DOCKER_IMG}:${VERSION} ${GHCR_IMG}:latest
|
||||
|
||||
.PHONY: build-binaries
|
||||
build-binaries:
|
||||
|
@ -25,4 +26,14 @@ build-binaries:
|
|||
.PHONY: push-docker-images
|
||||
push-docker-images: build-docker
|
||||
@docker push --all-tags ${GHCR_IMG}
|
||||
@docker push --all-tags ${DOCKER_IMG}
|
||||
@docker push --all-tags ${DOCKER_IMG}
|
||||
|
||||
.PHONY: bump-version
|
||||
bump-version:
|
||||
@echo "Bump version \"${VERSION}\" to \"${NEW_VERSION}\""
|
||||
@sd "version = \"${VERSION}\"" "version = \"${NEW_VERSION}\"" Cargo.toml
|
||||
@sd "VERSION := ${VERSION}" "VERSION := ${NEW_VERSION}" Makefile
|
||||
@git add .
|
||||
@git commit -m "bump v${NEW_VERSION}"
|
||||
@git tag -m "bump v${NEW_VERSION}" v${NEW_VERSION}
|
||||
@git push --follow-tags
|
||||
|
|
Reference in New Issue