Skip to content

Commit c0f7139

Browse files
Update google-cloudrun-docker.yml
1 parent 13912e9 commit c0f7139

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Angular Blog to Cloud Run
33
on:
44
push:
55
branches:
6-
- main # or any other branch you use for production
6+
- main
77

88
jobs:
99
test:
@@ -24,12 +24,11 @@ jobs:
2424
- name: Run unit tests with headless Chrome
2525
run: npm run test -- --browsers=ChromeHeadless --watch=false --no-progress
2626
continue-on-error: false
27-
# The workflow will fail if tests throw an error or fail
2827

2928
deploy:
3029
name: Build and Deploy
3130
runs-on: ubuntu-latest
32-
needs: test # This makes deploy job dependent on the test job
31+
needs: test
3332

3433
steps:
3534
- name: Checkout code
@@ -62,6 +61,6 @@ jobs:
6261
- name: Deploy to Cloud Run using Buildpacks
6362
uses: google-github-actions/deploy-cloudrun@v2
6463
with:
65-
service: angular-blog # your Cloud Run service name
66-
region: europe-central2 # match to your region
64+
service: angular-blog
65+
region: europe-central2
6766
source: .

0 commit comments

Comments
 (0)