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:
parent
f09d1fbd59
commit
8b6491fc8f
1 changed files with 1 additions and 3 deletions
4
.github/workflows/deploy.yaml
vendored
4
.github/workflows/deploy.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue