Skip to content

Commit 8b95ff0

Browse files
authored
Merge pull request #187 from kbst/fixreleasepipeline
Fix pipeline to correctly build releases from tags again
2 parents 02cb6db + fe6280f commit 8b95ff0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
- name: 'Build artifacts'
3030
env:
3131
DOCKER_PUSH: true
32+
GIT_SHA: ${{ github.sha }}
33+
GIT_REF: ${{ github.ref }}
3234
run: make dist
3335

3436
- name: 'Upload artifacts'

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
_all: dist build
22

3-
GIT_REF := $(shell echo "refs/heads/"`git rev-parse --abbrev-ref HEAD`)
4-
GIT_SHA := $(shell echo `git rev-parse --verify HEAD^{commit}`)
3+
GIT_REF ?= $(shell echo "refs/heads/"`git rev-parse --abbrev-ref HEAD`)
4+
GIT_SHA ?= $(shell echo `git rev-parse --verify HEAD^{commit}`)
55

66
DOCKER_PUSH ?= false
77
DOCKER_TARGET ?= multi-cloud

0 commit comments

Comments
 (0)