echo docker tag -f$(IMAGE):$(VERSIONHASH)$(IMAGE):latest ;\
docker tag -f$(IMAGE):$(VERSIONHASH)$(IMAGE):latest ;\
echo docker tag -f$(IMAGE):$(VERSIONHASH)$(IMAGE):$(VERSION);\
docker tag -f$(IMAGE):$(VERSIONHASH)$(IMAGE):$(VERSION);\
else\
echo docker tag $(IMAGE):$(VERSIONHASH)$(IMAGE):latest ;\
docker tag $(IMAGE):$(VERSIONHASH)$(IMAGE):latest ;\
echo docker tag $(IMAGE):$(VERSIONHASH)$(IMAGE):$(VERSION);\
docker tag $(IMAGE):$(VERSIONHASH)$(IMAGE):$(VERSION);\
fi
release:check-status check-release build push
push:init do-push post-push
rmi:delete-docker-image
images:list-docker-image
do-push:
docker push $(IMAGE):$(VERSIONHASH)
docker push $(IMAGE):$(VERSION)
docker push $(IMAGE):latest
build-push:build push
show-tag:init release.conf
@.$(RELEASE_SUPPORT); getVersionWithHash
@rm .make-function
showtag:init release.conf
@.$(RELEASE_SUPPORT); getVersionWithHash
@rm .make-function
check-status:init
@.$(RELEASE_SUPPORT);! hasChanges ||(echo"ERROR: there are still outstanding changes">&2);
@rm .make-function
check-release:init release.conf post-init
@.$(RELEASE_SUPPORT); tagExists $(TAG)||(echo"ERROR: version not yet tagged in git. make [minor,major,patch]-release.">&2 &&exit 1);
@.$(RELEASE_SUPPORT);! differsFromRelease $(TAG)||(echo"ERROR: current directory differs from tagged $(TAG). make [minor,major,patch]-release.";exit 1)