1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 10:54:42 -05:00

🔧 update docker and goreleaser configrations

This commit is contained in:
Nite07 2024-04-23 14:49:31 +08:00
parent ac4ad3c8aa
commit 3b8352a34f
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ builds:
- arm
- "386"
ldflags:
- -s -w -X sub2clash/config.Version={{ .Version }}
- -s -w -X sub2clash/constant.Version={{ .Version }}
flags:
- -trimpath
archives:

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . .
RUN go mod download
ARG version
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X sub2clash/config.Version=${version}" -o sub2clash .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X sub2clash/constant.Version=${version}" -o sub2clash .
FROM alpine:latest
WORKDIR /app