File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22DEIS_REGISTRY ?= $(DEV_REGISTRY ) /
33IMAGE_PREFIX ?= deis
44COMPONENT ?= workflow
5- BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
6- IMAGE = $(DEIS_REGISTRY )$(IMAGE_PREFIX ) /$(COMPONENT ) :$(BUILD_TAG )
5+ VERSION ?= git-$(shell git rev-parse --short HEAD)
6+ IMAGE = $(DEIS_REGISTRY )$(IMAGE_PREFIX ) /$(COMPONENT ) :$(VERSION )
77SHELL_SCRIPTS = $(wildcard rootfs/bin/* ) $(shell find "rootfs" -name '* .sh') $(wildcard _scripts/* .sh)
88
99info :
10- @echo " Build tag: ${BUILD_TAG } "
10+ @echo " Build tag: ${VERSION } "
1111 @echo " Registry: ${DEIS_REGISTRY} "
1212 @echo " Image: ${IMAGE} "
1313
@@ -20,10 +20,10 @@ check-docker:
2020prep-bintray-json :
2121# TRAVIS_TAG is set to the tag name if the build is a tag
2222ifdef TRAVIS_TAG
23- @jq '.version.name |= "$(BUILD_TAG )"' _scripts/ci/bintray-template.json | \
23+ @jq '.version.name |= "$(VERSION )"' _scripts/ci/bintray-template.json | \
2424 jq '.package.repo |= "deis"' > _scripts/ci/bintray-ci.json
2525else
26- @jq '.version.name |= "$(BUILD_TAG )"' _scripts/ci/bintray-template.json \
26+ @jq '.version.name |= "$(VERSION )"' _scripts/ci/bintray-template.json \
2727 > _scripts/ci/bintray-ci.json
2828endif
2929
Original file line number Diff line number Diff line change 55
66cd " $( dirname " $0 " ) " || exit 1
77
8- export IMAGE_PREFIX=deisci BUILD_TAG =v2-alpha
8+ export IMAGE_PREFIX=deisci VERSION =v2-alpha
99docker login -e=" $DOCKER_EMAIL " -u=" $DOCKER_USERNAME " -p=" $DOCKER_PASSWORD "
1010DEIS_REGISTRY=' ' make -C .. docker-build docker-push
1111docker login -e=" $QUAY_EMAIL " -u=" $QUAY_USERNAME " -p=" $QUAY_PASSWORD " quay.io
You can’t perform that action at this time.
0 commit comments