Skip to content

Commit c4e7d8e

Browse files
authored
Merge pull request #1551 from cortexproject/release-0.1
Set IMAGE_TAG to CIRCLE_TAG in Makefile
2 parents 5907d38 + a4036a5 commit c4e7d8e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.circleci/config.yml

-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ 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
10198
make BUILD_IN_CONTAINER=false
10299
103100
- store_artifacts:

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
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+
# Use CIRCLE_TAG if present for releases.
8+
IMAGE_TAG ?= $(if $(CIRCLE_TAG),$(CIRCLE_TAG),$(shell ./tools/image-tag))
89
GIT_REVISION := $(shell git rev-parse HEAD)
910
UPTODATE := .uptodate
1011

0 commit comments

Comments
 (0)