From 3b8352a34f36154fa5c0aa214e36fc649771c209 Mon Sep 17 00:00:00 2001 From: Nite07 Date: Tue, 23 Apr 2024 14:49:31 +0800 Subject: [PATCH] :wrench: update docker and goreleaser configrations --- .goreleaser.yaml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7527be4..3553bc8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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: diff --git a/Dockerfile b/Dockerfile index 81869ea..cc89ab0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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