Skip to content

Commit 05d7823

Browse files
authored
Update build.yaml
1 parent 4c61a07 commit 05d7823

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build:
1212
name: Docker Build Image And Push Docker Registry
13-
runs-on: blacksmith-8vcpu-ubuntu-2204
13+
runs-on: blacksmith-4vcpu-ubuntu-2204
1414
env:
1515
SECRET_REPO_PREFIX: REPO_
1616
SECRET_USERNAME_PREFIX: USERNAME_
@@ -25,19 +25,22 @@ jobs:
2525
with:
2626
node-version: '20'
2727

28-
- name: Build front
28+
- name: Install yarn
2929
run: |
3030
npm install -g yarn
31-
yarn && yarn build
3231
33-
- name: Setup Node
32+
- name: Setup Node Cache
3433
# uses: actions/setup-node@v4
3534
uses: useblacksmith/setup-node@v5
3635
with:
3736
node-version: '20'
3837
cache: 'yarn'
3938
cache-dependency-path: yarn.lock
4039

40+
- name: Build front
41+
run: |
42+
yarn && yarn build
43+
4144
- name: Set up QEMU # 设置 QEMU 环境,用来模拟操作系统,用来编译 arm64 镜像和 amd64 镜像
4245
uses: docker/setup-qemu-action@v3
4346
with:

0 commit comments

Comments
 (0)