File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments