Skip to content

Commit e17f0e4

Browse files
committed
Make build job will use IMAGE_TAG if present
Signed-off-by: Chris Marchbanks <[email protected]>
1 parent 42be8c4 commit e17f0e4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ jobs:
9595
name: Build
9696
command: |
9797
touch build-image/.uptodate
98+
if [ -n "$CIRCLE_TAG" ]; then
99+
export IMAGE_TAG=$CIRCLE_TAG
100+
fi
98101
make BUILD_IN_CONTAINER=false
99102
100103
- store_artifacts:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Boiler plate for bulding Docker containers.
55
# All this must go at top of file I'm afraid.
66
IMAGE_PREFIX ?= quay.io/cortexproject/
7-
IMAGE_TAG := $(shell ./tools/image-tag)
7+
IMAGE_TAG ?= $(shell ./tools/image-tag)
88
GIT_REVISION := $(shell git rev-parse HEAD)
99
UPTODATE := .uptodate
1010

0 commit comments

Comments
 (0)