Skip to content

Commit

Permalink
Fix flaky nightly releases
Browse files Browse the repository at this point in the history
The dashboard nightly has failed 2 out of the last 3 runs due to the same
credentials related issue that was affecting the pipeline and triggers releases
(see tektoncd/pipeline#2838).

This commit fixes the build by replacing the problematic environment variable
with an explicit call to activate the service account (just like
tektoncd/pipeline#2847).

Signed-off-by: Dibyo Mukherjee <dibyo@google.com>
  • Loading branch information
dibyom authored and tekton-robot committed Jul 1, 2020
1 parent b07cede commit 937668b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
value: $(params.imageRegistry)
- name: GOPATH
value: /workspace/go
- name: CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secret/release.json
- name: GO111MODULE
value:
Expand All @@ -67,7 +67,10 @@ spec:
set -e
set -x
# Auth with CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
# Activate service account
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
# Setup docker auth
gcloud auth configure-docker
# ko requires this variable to be set in order to set image creation timestamps correctly https://github.com/google/go-containerregistry/pull/146
Expand Down

0 comments on commit 937668b

Please sign in to comment.