File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,21 @@ jobs:
51
51
- name : Docker Buildx
52
52
uses : docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.5.0
53
53
54
- - name : GCR Login
54
+ - name : Authenticate to Google Cloud
55
+ id : auth
56
+ uses : google-github-actions/auth@e8df18b60c5dd38ba618c121b779307266153fbf # v1.1.0
57
+ with :
58
+ token_format : access_token
59
+ workload_identity_provider : ${{ secrets.GCR_WORKLOAD_IDENTITY }}
60
+ service_account : ${{ secrets.GCR_SERVICE_ACCOUNT }}
61
+ if : github.event_name != 'pull_request'
62
+
63
+ - name : Login to GCR
55
64
uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
56
65
with :
57
66
registry : gcr.io
58
- username : _json_key
59
- password : ${{ secrets.GCR_JSON_KEY }}
67
+ username : oauth2accesstoken
68
+ password : ${{ steps.auth.outputs.access_token }}
60
69
if : github.event_name != 'pull_request'
61
70
62
71
- name : Configure AWS Credentials
You can’t perform that action at this time.
0 commit comments