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:
parent
ac4ad3c8aa
commit
3b8352a34f
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user