mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-23 06:34:42 -05:00
🔧 update docker and goreleaser configrations
This commit is contained in:
parent
ac4ad3c8aa
commit
3b8352a34f
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user