File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
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
+
8
14
env :
9
15
PROJECT_ID : coder-labeler
10
16
@@ -19,13 +25,16 @@ jobs:
19
25
- name : Set up Go
20
26
uses : actions/setup-go@v4
21
27
with :
22
- go-version : " 1.21"
28
+ go-version : " 1.21" # Adjust this to your Go version
23
29
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"
26
33
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"
29
38
30
39
- name : Configure Docker
31
40
run : gcloud auth configure-docker us-central1-docker.pkg.dev
You can’t perform that action at this time.
0 commit comments