Skip to content

Commit aed3e08

Browse files
committed
PEER-242: Update action script
Signed-off-by: SeeuSim <[email protected]>
1 parent 32dfa24 commit aed3e08

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build-deploy-docker.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,19 @@ jobs:
192192
with:
193193
service_account_key: ${{ secrets.GKE_SA_KEY }}
194194
project_id: ${{ secrets.GKE_PROJECT }}
195-
195+
196+
- name: Auth GCloud
197+
uses: google-github-actions/auth@v2
198+
if: ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' }}
199+
with:
200+
credentials_json: '${{ secrets.GKE_CJSON }}'
201+
196202
- name: Get GKE creds
197203
uses: google-github-actions/get-gke-credentials@v2
198204
if: ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' }}
199205
with:
200-
project_id: ${{ secrets.GKE_PROJECT }}
201206
cluster_name: ${{ secrets.GKE_CLUSTER }}
202207
location: ${{ secrets.GKE_ZONE }}
203-
credentials: ${{ secrets.GKE_SA_KEY }}
204208

205209
- name: Detect GKE Cluster
206210
if: ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' }}

0 commit comments

Comments
 (0)