Skip to content

Commit

Permalink
Merge pull request #1044 from youngnick/release-0.4
Browse files Browse the repository at this point in the history
Fix release-staging cloudbuild job - hopefully
  • Loading branch information
k8s-ci-robot authored Mar 16, 2022
2 parents 304e8ae + b4bd15d commit 36736f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ export BASE_REF ?= master
# The commit hash of the current checkout
# Used to pass a binary version for master,
# overridden to semver for tagged versions.
export COMMIT=$(shell git rev-parse --short HEAD)
# Cloudbuild will set this in the environment to the
# commit SHA, since the Prow does not seem to check out
# a git repo.
export COMMIT ?= $(shell git rev-parse --short HEAD)

DOCKER ?= docker
# TOP is the current directory where this Makefile lives.
Expand Down
3 changes: 3 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ steps:
- DOCKER_CLI_EXPERIMENTAL=enabled
- GIT_TAG=$_GIT_TAG
- BASE_REF=$_PULL_BASE_REF
- COMMIT=$_PULL_BASE_SHA
args:
- release-staging
substitutions:
Expand All @@ -22,3 +23,5 @@ substitutions:
# _PULL_BASE_REF will contain the ref that was pushed to to trigger this build -
# a branch like 'master' or 'release-0.2', or a tag like 'v0.2'.
_PULL_BASE_REF: 'master'
# _PULL_BASE_SHA will contain the Git SHA of the commit that was pushed to trigger this build.
_PULL_BASE_SHA: 'abcdef'

0 comments on commit 36736f7

Please sign in to comment.