Add docker-release

Add VERSION variable for use with docker-release. Creates a new docker
image automatically and a commit to go with it.
This commit is contained in:
ducoterra
2021-11-01 20:52:59 -04:00
parent 446da1ff0e
commit 3e472ebe86
2 changed files with 8 additions and 0 deletions

View File

@@ -20,3 +20,10 @@ build:
push:
docker buildx build --platform linux/amd64 --push . -t $(IMAGE)
@docker buildx build --platform linux/amd64 --push . -t $(IMAGE_LATEST)
.PHONY: docker-release
docker-release:
@git add .
@git commit -m "Automated release for version $(VERSION)"
@git tag $(VERSION)
@make push