Skip to content

Commit db3d077

Browse files
committed
Update CD to push image to GCP
1 parent 7b1dd62 commit db3d077

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/cd.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,17 @@ jobs:
2020

2121
- name: Build app
2222
run: ./scripts/buildprod.sh
23+
24+
- id: "auth"
25+
uses: "google-github-actions/auth@v2"
26+
with:
27+
credentials_json: "${{ secrets.GCP_CREDENTIALS }}"
28+
29+
- name: "Set up Cloud SDK"
30+
uses: "google-github-actions/setup-gcloud@v3"
31+
32+
- name: "Use gcloud CLI"
33+
run: "gcloud info"
34+
35+
- name: Build and push image to Google Artifact Registry
36+
run: "gcloud builds submit --tag http://us-central1-docker.pkg.dev/notely-478906/notely-ar-repo/notely:latest ."

0 commit comments

Comments
 (0)