Skip to content

Commit 1319089

Browse files
committed
add.d
1 parent f00b130 commit 1319089

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/cd.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
push:
3+
branches: [main]
4+
jobs:
5+
deploy:
6+
name: Deploy
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Check out code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Node
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
18+
19+
- name: Install dependencies
20+
run: |
21+
rm -f package-lock.json
22+
npm install
23+
npm ci
24+
- name: build
25+
run: npm run build
26+
27+
- id: auth
28+
uses: google-github-actions/auth@v2
29+
with:
30+
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
31+
32+
- name: Set up Cloud SDK
33+
uses: google-github-actions/setup-gcloud@v2
34+
35+
- name: Use gcloud CLI
36+
run: gcloud info
37+
38+
- name: Build and push Docker image
39+
run: gcloud builds submit --tag REGION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG

0 commit comments

Comments
 (0)