1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-08 09:04:54 +00:00

don't re-login, use gcloud to login to GCR

This commit is contained in:
Jason Hall 2021-12-09 14:40:55 -05:00
parent f09d1fbd59
commit 8b6491fc8f

View file

@ -36,9 +36,7 @@ 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 login --brief --cred-file="${{ steps.auth.outputs.credentials_file_path }}"
gcloud auth print-access-token | ko login gcr.io --username=oauth2accesstoken --password-stdin
- run: gcloud auth configure-docker gcr.io
# Checkout code.
- uses: actions/checkout@v2