Skip to content

Commit

Permalink
Move login to one layer
Browse files Browse the repository at this point in the history
  • Loading branch information
suranc committed Mar 19, 2024
1 parent c21b07a commit 89fa819
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:latest
ADD .config/gcloud/application_default_credentials.json /tmp/application_default_credentials.json
ADD tmp/id_token /harness/tmp/id_token
ENV GOOGLE_APPLICATION_CREDENTIALS=/tmp/application_default_credentials.json
RUN gcloud auth login --brief --cred-file /tmp/application_default_credentials.json
RUN export
RUN gcloud artifacts repositories list --project sales-209522
RUN gcloud auth login --brief --cred-file /tmp/application_default_credentials.json && gcloud artifacts repositories list --project sales-209522

0 comments on commit 89fa819

Please sign in to comment.