update github workflow

This commit is contained in:
dushixiang
2021-11-04 22:07:02 +08:00
parent f1efcc0fae
commit b4cab3d227
2 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,6 @@ jobs:
cd web
npm install
npm run build
- uses: actions/checkout@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:

View File

@ -10,6 +10,7 @@ COPY . .
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk add gcc g++
RUN go mod tidy
RUN go env;ARCH="$(arch)";case "$ARCH" in 'x86_64') export ARCH='amd64';echo $ARCH;; 'aarch64') export ARCH='arm64';echo $ARCH;; 'i386') export ARCH='i386';echo $ARCH;; esac;CGO_ENABLED=1 GOOS=linux GOARCH=$ARCH go build -a -ldflags '-linkmode external -extldflags "-static"' -o next-terminal main.go
FROM alpine:latest