From 05d7823f1e1147d258e05861fc7600dd31b9868f Mon Sep 17 00:00:00 2001 From: zhao jun <873019219@qq.com> Date: Mon, 30 Sep 2024 15:39:17 +0800 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3975d13..c3349f7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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_ @@ -25,12 +25,11 @@ 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: @@ -38,6 +37,10 @@ jobs: 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: