You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
MUTABLE_VERSION ?= canary
|
|
|
|
VERSION ?= git-$(shell git rev-parse --short HEAD)
|
|
|
|
|
|
|
|
IMAGE := ${DOCKER_REGISTRY}/${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
|
|
|
|
MUTABLE_IMAGE := ${DOCKER_REGISTRY}/${IMAGE_PREFIX}/${SHORT_NAME}:${MUTABLE_VERSION}
|
|
|
|
|
|
|
|
info:
|
|
|
|
@echo "Build tag: ${VERSION}"
|
|
|
|
@echo "Registry: ${DOCKER_REGISTRY}"
|
|
|
|
@echo "Immutable tag: ${IMAGE}"
|
|
|
|
@echo "Mutable tag: ${MUTABLE_IMAGE}"
|
|
|
|
|
|
|
|
.PHONY: docker-push
|
|
|
|
docker-push: docker-mutable-push docker-immutable-push
|
|
|
|
|
|
|
|
.PHONY: docker-immutable-push
|
|
|
|
docker-immutable-push:
|
|
|
|
docker push ${IMAGE}
|
|
|
|
|
|
|
|
.PHONY: docker-mutable-push
|
|
|
|
docker-mutable-push:
|
|
|
|
docker push ${MUTABLE_IMAGE}
|