Skip to content

Commit

Permalink
correct env and path
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Apr 17, 2020
1 parent 61caec9 commit edc8ebd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions hack/ci/push-latest-cli/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ options:
steps:
- name: gcr.io/k8s-testimages/krte:latest-master
env:
- PULL_BASE_REF=$_PULL_BASE_REF
entrypoint: hack/ci/push-latest-cli.sh
- PULL_BASE_SHA=$_PULL_BASE_SHA
entrypoint: hack/ci/push-latest-cli/push-latest-cli.sh
substitutions:
_GIT_TAG: '12345'
_PULL_BASE_REF: 'oops'
_PULL_BASE_SHA: 'oops'
4 changes: 2 additions & 2 deletions hack/ci/push-latest-cli/push-latest-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../..." && pwd -P)"
cd "${REPO_ROOT}"

# pass through git details from prow / image builder
if [ -n "${PULL_BASE_REF:-}" ]; then
export COMMIT="${PULL_BASE_REF:?}"
if [ -n "${PULL_BASE_SHA:-}" ]; then
export COMMIT="${PULL_BASE_SHA:?}"
fi

# build for all platforms
Expand Down

0 comments on commit edc8ebd

Please sign in to comment.