feat: add goreleaser docker image publish

This commit is contained in:
engigu
2024-01-27 22:43:58 +08:00
parent 849f768708
commit 6dc659357a
2 changed files with 14 additions and 2 deletions
+12
View File
@@ -43,6 +43,18 @@ jobs:
go-version: '>=1.20.2' go-version: '>=1.20.2'
cache: true cache: true
- name: Install npm dependencies
run: npm i
working-directory: web/
- name: Run npm build
run: export NODE_ENV=prod && npm run build
working-directory: web/
- name: Check build static
run: ls dist/ -la
working-directory: web/
- name: Git File Restore - name: Git File Restore
run: git checkout . run: git checkout .
+2 -2
View File
@@ -25,7 +25,7 @@ dockers:
extra_files: extra_files:
- LICENSE - LICENSE
- README.md - README.md
- conf/* - conf/
use: buildx use: buildx
build_flag_templates: build_flag_templates:
- --platform=linux/amd64 - --platform=linux/amd64
@@ -43,7 +43,7 @@ dockers:
extra_files: extra_files:
- LICENSE - LICENSE
- README.md - README.md
- conf/* - conf/
use: buildx use: buildx
build_flag_templates: build_flag_templates:
- --platform=linux/arm64/v8 - --platform=linux/arm64/v8