Skip to content

Commit 1b838c2

Browse files
committed
ci: fix perms
1 parent 937f3f0 commit 1b838c2

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/deploy.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches:
66
- main
77

8+
# This ensures only one deployment job runs at a time
9+
# If a second deployment is triggered, it will cancel the first one
10+
concurrency:
11+
group: deploy-to-cloud-run
12+
cancel-in-progress: true
13+
814
env:
915
PROJECT_ID: coder-labeler
1016

@@ -19,13 +25,16 @@ jobs:
1925
- name: Set up Go
2026
uses: actions/setup-go@v4
2127
with:
22-
go-version: "1.21"
28+
go-version: "1.21" # Adjust this to your Go version
2329

24-
- name: Set up Cloud SDK
25-
uses: google-github-actions/setup-gcloud@v1
30+
- name: Google Auth
31+
id: auth
32+
uses: "google-github-actions/auth@v1"
2633
with:
27-
project_id: coder-labeler
28-
service_account_key: ${{ secrets.GCP_SA_KEY }}
34+
credentials_json: "${{ secrets.GCP_SA_KEY }}"
35+
36+
- name: Set up Cloud SDK
37+
uses: "google-github-actions/setup-gcloud@v1"
2938

3039
- name: Configure Docker
3140
run: gcloud auth configure-docker us-central1-docker.pkg.dev

0 commit comments

Comments
 (0)