修改 docker 编译

This commit is contained in:
bjdgy
2024-01-29 22:07:52 +08:00
parent 39b28f23c0
commit b7fbbdc58c
4 changed files with 29 additions and 22 deletions

View File

@@ -17,20 +17,22 @@ jobs:
run: uname -a
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'yarn'
cache-dependency-path: 'web/yarn.lock'
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache-dependency-path: 'server/go.sum'
- name: Build web
working-directory: web
run: |
yarn install
yarn run build
# - uses: actions/setup-node@v4
# with:
# node-version: '16'
# cache: 'yarn'
# cache-dependency-path: 'web/yarn.lock'
# - uses: actions/setup-go@v4
# with:
# go-version: '1.20'
# cache-dependency-path: 'server/go.sum'
# - name: Build web
# working-directory: web
# run: |
# yarn install
# yarn run build
- name: Set up QEMU
# https://github.com/docker/setup-qemu-action
uses: docker/setup-qemu-action@v3
@@ -52,6 +54,9 @@ jobs:
echo "APP_VER=$appVer" >> $GITHUB_ENV
echo "commitId=$commitId" >> $GITHUB_ENV
mkdir server/ui
touch server/ui/a.txt
cd server;go mod tidy
- name: Build and push