File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ export BASE_REF ?= master
38
38
# The commit hash of the current checkout
39
39
# Used to pass a binary version for master,
40
40
# overridden to semver for tagged versions.
41
- export COMMIT =$(shell git rev-parse --short HEAD)
41
+ # Cloudbuild will set this in the environment to the
42
+ # commit SHA, since the Prow does not seem to check out
43
+ # a git repo.
44
+ export COMMIT ?= $(shell git rev-parse --short HEAD)
42
45
43
46
DOCKER ?= docker
44
47
# TOP is the current directory where this Makefile lives.
Original file line number Diff line number Diff line change 13
13
- DOCKER_CLI_EXPERIMENTAL=enabled
14
14
- GIT_TAG=$_GIT_TAG
15
15
- BASE_REF=$_PULL_BASE_REF
16
+ - COMMIT=$_PULL_BASE_SHA
16
17
args :
17
18
- release-staging
18
19
substitutions :
@@ -22,3 +23,5 @@ substitutions:
22
23
# _PULL_BASE_REF will contain the ref that was pushed to to trigger this build -
23
24
# a branch like 'master' or 'release-0.2', or a tag like 'v0.2'.
24
25
_PULL_BASE_REF : ' master'
26
+ # _PULL_BASE_SHA will contain the Git SHA of the commit that was pushed to trigger this build.
27
+ _PULL_BASE_SHA : ' abcdef'
You can’t perform that action at this time.
0 commit comments