Skip to content

Commit 32f5c42

Browse files
authored
Merge pull request #3 from SoulOppen/addtests
add:deploy
2 parents 3f7c571 + 8e2e986 commit 32f5c42

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/cd.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,13 @@ jobs:
2323
npm ci
2424
- name: build
2525
run: npm run build
26+
- name: Set up gcloud CLI
27+
uses: google-github-actions/setup-gcloud@v2
28+
with:
29+
project_id: ${{ secrets.GCP_PROJECT_ID }}
30+
service_account_key: ${{ secrets.GCP_CREDENTIALS }}
31+
export_default_credentials: true
32+
- name: Build and Push Docker Image
33+
run: |
34+
IMAGE="us-central1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/notely-ar-repo/notely-app:latest"
35+
gcloud builds submit --tag $IMAGE

0 commit comments

Comments
 (0)