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- VERSION ?= git-$(shell git rev-parse --short HEAD)
6- IMAGE = $(DEIS_REGISTRY )$(IMAGE_PREFIX ) /$(COMPONENT ) :$(VERSION )
5+ BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
6+ IMAGE = $(DEIS_REGISTRY )$(IMAGE_PREFIX ) /$(COMPONENT ) :$(BUILD_TAG )
77SHELL_SCRIPTS = $(wildcard rootfs/bin/* ) $(shell find "rootfs" -name '* .sh') $(wildcard _scripts/* .sh)
88
9+ info :
10+ @echo " Build tag: ${BUILD_TAG} "
11+ @echo " Registry: ${DEIS_REGISTRY} "
12+ @echo " Image: ${IMAGE} "
13+
914check-docker :
1015 @if [ -z $$ (which docker) ]; then \
1116 echo " Missing \` docker\` client which is required for development" ; \
@@ -15,10 +20,10 @@ check-docker:
1520prep-bintray-json :
1621# TRAVIS_TAG is set to the tag name if the build is a tag
1722ifdef TRAVIS_TAG
18- @jq '.version.name |= "$(VERSION )"' _scripts/ci/bintray-template.json | \
23+ @jq '.version.name |= "$(BUILD_TAG )"' _scripts/ci/bintray-template.json | \
1924 jq '.package.repo |= "deis"' > _scripts/ci/bintray-ci.json
2025else
21- @jq '.version.name |= "$(VERSION )"' _scripts/ci/bintray-template.json \
26+ @jq '.version.name |= "$(BUILD_TAG )"' _scripts/ci/bintray-template.json \
2227 > _scripts/ci/bintray-ci.json
2328endif
2429
Original file line number Diff line number Diff line change 55
66cd " $( dirname " $0 " ) " || exit 1
77
8- export IMAGE_PREFIX=deisci VERSION =v2-alpha
8+ export IMAGE_PREFIX=deisci BUILD_TAG =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