Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit b50474b

Browse files
committed
Use VERSION for our release process
1 parent f4dc21d commit b50474b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
BIN := oci
1616
BUILD_DIR := dist
1717
BIN_DIR := ${BUILD_DIR}/bin
18-
VERSION := $(shell git describe --always --dirty)
1918

19+
# Allow overriding for release versions
20+
VERSION ?= $(shell git describe --always --dirty)
2021
GOOS ?= linux
2122
GOARCH ?= amd64
2223

wercker.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,16 @@ system-test:
7070
7171
release:
7272
steps:
73+
- script:
74+
name: set ENV vars
75+
code: |
76+
export VERSION=$(cat VERSION.txt)
77+
echo "${VERSION}"
78+
7379
- github-create-release:
7480
token: $GITHUB_TOKEN
75-
tag: $GITHUB_RELEASE_VERSION
76-
title: $GITHUB_RELEASE_VERSION
81+
tag: $VERSION
82+
title: $VERSION
7783
draft: false
7884

7985
- github-upload-asset:

0 commit comments

Comments
 (0)