Skip to content

Commit eca30ec

Browse files
committed
ref(Makefile): use preferred env vars for build
1 parent b6029b4 commit eca30ec

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# If DEIS_REGISTRY is not set, try to populate it from legacy DEV_REGISTRY
2-
DEIS_REGISTRY ?= $(DEV_REGISTRY)
2+
DEIS_REGISTRY ?= $(DEV_REGISTRY)/
33
IMAGE_PREFIX ?= deis
44
COMPONENT ?= workflow
5-
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
6-
IMAGE = $(DEIS_REGISTRY)/$(IMAGE_PREFIX)/$(COMPONENT):$(BUILD_TAG)
7-
SHELL_SCRIPTS = $(wildcard rootfs/bin/*) $(shell find "rootfs" -name '*.sh') $(shell find "_scripts/ci" -name '*.sh')
5+
VERSION ?= git-$(shell git rev-parse --short HEAD)
6+
IMAGE = $(DEIS_REGISTRY)$(IMAGE_PREFIX)/$(COMPONENT):$(VERSION)
7+
SHELL_SCRIPTS = $(wildcard rootfs/bin/*) $(shell find "rootfs" -name '*.sh') $(wildcard _scripts/*.sh)
88

99
check-docker:
1010
@if [ -z $$(which docker) ]; then \

_scripts/deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
cd "$(dirname "$0")" || exit 1
77

8-
export IMAGE_PREFIX=deisci BUILD_TAG=v2-alpha
8+
export IMAGE_PREFIX=deisci VERSION=v2-alpha
99
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
10-
REGISTRY='' make -C .. docker-build docker-push
10+
DEIS_REGISTRY='' make -C .. docker-build docker-push
1111
docker login -e="$QUAY_EMAIL" -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
12-
REGISTRY=quay.io/ make -C .. docker-build docker-push
12+
DEIS_REGISTRY=quay.io/ make -C .. docker-build docker-push

0 commit comments

Comments
 (0)