Print tags in version command

This commit is contained in:
世界 2022-09-14 12:47:30 +08:00
parent 189f02c802
commit 9aa7a20d96
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 37 additions and 32 deletions

View file

@ -10,7 +10,7 @@ RUN set -ex \
&& export COMMIT=$(git rev-parse --short HEAD) \
&& go build -v -trimpath -tags 'no_gvisor,with_quic,with_wireguard,with_acme' \
-o /go/bin/sing-box \
-ldflags "-X github.com/sagernet/sing-box/constant.Commit=${COMMIT} -w -s -buildid=" \
-ldflags "-s -w -buildid=" \
./cmd/sing-box
FROM alpine AS dist
LABEL maintainer="nekohasekai <contact-git@sekai.icu>"