1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-16 20:34:22 +00:00

gcloud auth login again

This commit is contained in:
Jason Hall 2021-12-09 14:50:53 -05:00
parent 545bb21e7b
commit 318392269b

View file

@ -36,7 +36,10 @@ jobs:
workload_identity_provider: 'projects/7577580991/locations/global/workloadIdentityPools/gha-pool/providers/gha-provider'
service_account: 'gha-deployer@kontaindotme.iam.gserviceaccount.com'
create_credentials_file: true
- run: gcloud auth print-access-token | ko login gcr.io --username=oauth2accesstoken --password-stdin
- name: Login
- run: |
gcloud auth login --brief --cred-file="${{ steps.auth.outputs.credentials_file_path }}"
gcloud auth print-access-token | ko login gcr.io --username=oauth2accesstoken --password-stdin
# Checkout code.
- uses: actions/checkout@v2