From 5777da7c621d3a325d330124d1340f225d9914b6 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Fri, 11 Mar 2022 15:36:26 -0500 Subject: [PATCH] try to get this working again --- .github/workflows/deploy.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index c55736f..a527f55 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -22,23 +22,19 @@ jobs: - uses: imjasonh/setup-ko@v0.4 env: KO_DOCKER_REPO: gcr.io/kontaindotme - with: - version: tip - uses: imjasonh/setup-crane@v0.1 - - uses: google-github-actions/setup-gcloud@v0.3.0 - with: - project_id: kontaindotme # Setup OIDC->SA auth - - uses: google-github-actions/auth@v0.4.2 + - uses: google-github-actions/auth@v0 id: auth with: 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 + - uses: google-github-actions/setup-gcloud@v0.6.0 + with: + project_id: kontaindotme - 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.