feat: expose build version in public config

- add version to public/admin config responses
- inject build version in Docker and GoReleaser builds
- limit Docker image publishing to v* tags
- restore soft-deleted settings on upsert
This commit is contained in:
line-6000
2026-05-21 19:23:04 +08:00
parent 049a15cb95
commit 85b81e661c
185 changed files with 409 additions and 207 deletions
+2 -1
View File
@@ -8,8 +8,9 @@ WORKDIR /app
COPY . /app
WORKDIR /app/src
ARG BUILD_VERSION=0.0.0-dev
RUN go mod download
RUN go build -o /app/epusdt .
RUN go build -trimpath -ldflags="-s -w -X github.com/GMWalletApp/epusdt/config.BuildVersion=${BUILD_VERSION}" -o /app/epusdt .
FROM alpine:latest AS runner
ENV TZ=Asia/Shanghai