1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 13:44: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 - arm
- "386" - "386"
ldflags: ldflags:
- -s -w -X sub2clash/config.Version={{ .Version }} - -s -w -X sub2clash/constant.Version={{ .Version }}
flags: flags:
- -trimpath - -trimpath
archives: archives:

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . . COPY . .
RUN go mod download RUN go mod download
ARG version 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 FROM alpine:latest
WORKDIR /app WORKDIR /app