Skip to content

Commit 28f6c5b

Browse files
committed
set dry-run build
1 parent 0a6a0b0 commit 28f6c5b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Dry-run Build
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
- dev
8+
9+
jobs:
10+
build:
11+
runs-on: ubicloud-standard-2
12+
steps:
13+
- name: Checkout your repository using git
14+
uses: actions/checkout@v4
15+
16+
- name: Setup PNPM
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: latest
20+
package_json_file: ./package.json
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: "pnpm"
27+
28+
- name: Install
29+
run: pnpm install
30+
31+
- name: Build
32+
run: pnpm run build
33+
34+
- name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v3
36+
37+
- name: Build and push
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
push: false
42+
file: Dockerfile
43+

0 commit comments

Comments
 (0)