Skip to content

Commit 5440882

Browse files
use the proper auth method with helm cli
1 parent 5732ad8 commit 5440882

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ jobs:
4545
- name: Login to artifact registry
4646
run: |
4747
cd kubernetes
48-
gcloud auth activate-service-account ${{vars.SERVICE_ACCOUNT_NAME}} --key-file $GOOGLE_APPLICATION_CREDENTIALS
49-
cat $GOOGLE_APPLICATION_CREDENTIALS | helm registry login -u _json_key --password-stdin https://${{vars.ARTIFACT_REGISTRY_HOST_NAME}}
48+
cat ${{ steps.auth.outputs.access_token }} | helm registry login -u oauth2accesstoken --password-stdin https://${{vars.ARTIFACT_REGISTRY_HOST_NAME}}
5049
5150
- name: Prepare YQ
5251
uses: dcarbone/[email protected]

0 commit comments

Comments
 (0)