Skip to content

Commit cbb360e

Browse files
Update google-cloudrun-docker.yml
1 parent c522a90 commit cbb360e

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
12
name: Deploy Angular Blog to Cloud Run
23

34
on:
45
push:
56
branches:
6-
- main # lub inna gałąź, którą używasz do produkcji
7+
- main # or any other branch you use for production
78

89
jobs:
910
deploy:
@@ -30,9 +31,18 @@ jobs:
3031
with:
3132
credentials_json: '${{ secrets.GCP_SA_KEY }}'
3233

34+
- name: Install Google Cloud SDK
35+
run: |
36+
echo "Installing Google Cloud SDK"
37+
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
38+
sudo apt-get install -y apt-transport-https ca-certificates
39+
sudo apt-get update && sudo apt-get install -y google-cloud-sdk
40+
gcloud version
41+
3342
- name: Deploy to Cloud Run using Buildpacks
3443
uses: google-github-actions/deploy-cloudrun@v2
3544
with:
36-
service: angular-blog # nazwa Twojej usługi Cloud Run
37-
region: europe-central2 # dopasuj do regionu
38-
source: .
45+
service: angular-blog # your Cloud Run service name
46+
region: europe-central2 # match to your region
47+
source: .
48+

0 commit comments

Comments
 (0)