Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojun1998 authored Sep 30, 2024
1 parent 4c61a07 commit 05d7823
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: Docker Build Image And Push Docker Registry
runs-on: blacksmith-8vcpu-ubuntu-2204
runs-on: blacksmith-4vcpu-ubuntu-2204
env:
SECRET_REPO_PREFIX: REPO_
SECRET_USERNAME_PREFIX: USERNAME_
Expand All @@ -25,19 +25,22 @@ jobs:
with:
node-version: '20'

- name: Build front
- name: Install yarn
run: |
npm install -g yarn
yarn && yarn build
- name: Setup Node
- name: Setup Node Cache
# uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: yarn.lock

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

0 comments on commit 05d7823

Please sign in to comment.