22DEIS_REGISTRY ?= $(DEV_REGISTRY )
33IMAGE_PREFIX ?= deis
44COMPONENT ?= workflow
5- VERSION ?= git-$(shell git rev-parse --short HEAD)
6- IMAGE = $(DEIS_REGISTRY )$(IMAGE_PREFIX ) /$(COMPONENT ) :$(VERSION )
5+ SHORT_NAME ?= $(COMPONENT )
6+
7+ include versioning.mk
8+
79SHELL_SCRIPTS = $(wildcard rootfs/bin/* ) $(shell find "rootfs" -name '* .sh') $(wildcard _scripts/* .sh)
810
911# Get the component informtation to a tmp location and get replica count
1012$(shell kubectl get rc deis-$(COMPONENT) --namespace deis -o yaml > /tmp/deis-$(COMPONENT))
1113DESIRED_REPLICAS =$(shell kubectl get -o template rc/deis-$(COMPONENT ) --template={{.status.replicas}} --namespace deis)
1214
13- info :
14- @echo " Build tag: ${VERSION} "
15- @echo " Registry: ${DEIS_REGISTRY} "
16- @echo " Image: ${IMAGE} "
17-
1815check-docker :
1916 @if [ -z $$ (which docker) ]; then \
2017 echo " Missing \` docker\` client which is required for development" ; \
@@ -24,10 +21,8 @@ check-docker:
2421build : docker-build
2522
2623docker-build : check-docker
27- docker build --rm -t $(IMAGE ) rootfs
28-
29- docker-push :
30- docker push ${IMAGE}
24+ docker build --rm -t ${IMAGE} rootfs
25+ docker tag -f ${IMAGE} ${MUTABLE_IMAGE}
3126
3227deploy : docker-build docker-push
3328 sed ' s#\(image:\) .*#\1 $(IMAGE)#' /tmp/deis-$(COMPONENT ) | kubectl apply --validate=true -f -
@@ -73,6 +68,6 @@ test-functional:
7368 @echo " Implement functional tests in _tests directory"
7469
7570test-integration :
76- @echo " Check https://github.com/deis/workflow-e2e for the complete interation test suite"
71+ @echo " Check https://github.com/deis/workflow-e2e for the complete integration test suite"
7772
7873.PHONY : build clean commit-hook full-clean postgres setup-venv test test-style test-unit test-functional
0 commit comments