Skip to content

Commit 9946c35

Browse files
Update google-cloudrun-docker.yml
1 parent 21b1ea2 commit 9946c35

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/google-cloudrun-docker.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [ "main" ]
66

7-
# Permissions for Workload Identity Federation
87
permissions:
98
contents: read
109
id-token: write
@@ -22,24 +21,22 @@ jobs:
2221
id: auth
2322
uses: google-github-actions/auth@v2
2423
with:
25-
project_id: "angularblogcloud-455518"
24+
project_id: "angularblogcloud-455518" # <-- Replace with your project if needed
2625
workload_identity_provider: "projects/863451014992/locations/global/workloadIdentityPools/github/providers/my-repo"
2726

28-
# 3) (Optional) Install & configure gcloud CLI
27+
# 3) Install & configure gcloud CLI
2928
- name: Set up Cloud SDK
3029
uses: google-github-actions/setup-gcloud@v1
3130
with:
3231
export_default_credentials: true
3332

34-
# 4) Configure region & enable APIs
33+
# 4) Configure region (no API enabling here)
3534
- name: Configure gcloud
3635
run: |
3736
gcloud config set project ${{ steps.auth.outputs.project_id }}
3837
gcloud config set run/region europe-central2
39-
gcloud services enable run.googleapis.com
40-
gcloud services enable cloudbuild.googleapis.com
4138
42-
# 5) Install dependencies
39+
# 5) Install Node.js dependencies
4340
- name: Install Node dependencies
4441
run: npm install
4542

0 commit comments

Comments
 (0)