From 6dc659357adaee07d79b865d1cc328c0e9ef377a Mon Sep 17 00:00:00 2001 From: engigu Date: Sat, 27 Jan 2024 22:43:58 +0800 Subject: [PATCH] feat: add goreleaser docker image publish --- .github/workflows/release.yml | 12 ++++++++++++ .goreleaser.yaml | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21d96ec..79ab906 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,18 @@ jobs: go-version: '>=1.20.2' 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 run: git checkout . diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ce3589e..bc94295 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -25,7 +25,7 @@ dockers: extra_files: - LICENSE - README.md - - conf/* + - conf/ use: buildx build_flag_templates: - --platform=linux/amd64 @@ -43,7 +43,7 @@ dockers: extra_files: - LICENSE - README.md - - conf/* + - conf/ use: buildx build_flag_templates: - --platform=linux/arm64/v8