This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 顺序不能颠倒:cmd/fonu/main.go 用 //go:embed all:web/dist 嵌入前端,
|
||||
# 顺序不能颠倒:cmd/havline/main.go 用 //go:embed all:web/dist 嵌入前端,
|
||||
# 干净检出时该目录不存在,go vet / go build 会直接失败。
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
@@ -39,8 +39,8 @@ jobs:
|
||||
|
||||
- name: Sync web dist into embed directory
|
||||
run: |
|
||||
rm -rf cmd/fonu/web/dist
|
||||
cp -r web/dist cmd/fonu/web/dist
|
||||
rm -rf cmd/havline/web/dist
|
||||
cp -r web/dist cmd/havline/web/dist
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
push: true
|
||||
build-args: |
|
||||
VERSION=${{ steps.version.outputs.version }}
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/fonu:${{ steps.version.outputs.version }}-${{ matrix.arch }}
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/havline:${{ steps.version.outputs.version }}-${{ matrix.arch }}
|
||||
labels: |
|
||||
org.opencontainers.image.source=${{ github.repositoryUrl }}
|
||||
org.opencontainers.image.version=${{ steps.version.outputs.version }}
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
|
||||
- name: Create multi-arch manifest
|
||||
env:
|
||||
IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/fonu
|
||||
IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/havline
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
if [ -z "${IMAGE}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user