Skip to content

Commit 2cec97f

Browse files
committed
Set the $VERSION properly in CI
1 parent 7412dc7 commit 2cec97f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ run-dev:
7676
--cluster-cidr=10.244.0.0/16 \
7777
--cloud-provider=external \
7878
-v=4
79+
80+
.PHONY: version
81+
version:
82+
@echo ${VERSION}

wercker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build:
88
- script:
99
name: write VERSION.txt
1010
code: |
11-
git describe --always --dirty > ${WERCKER_OUTPUT_DIR}/VERSION.txt
11+
make version > ${WERCKER_OUTPUT_DIR}/VERSION.txt
1212
cat ${WERCKER_OUTPUT_DIR}/VERSION.txt
1313
1414
- script:

0 commit comments

Comments
 (0)