Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(action): optimize binary size (#16822)

p0nye867d80b5ba6
diff --git a/scripts/Dockerfile.action b/scripts/Dockerfile.action
index a634716bf5..1aa9a4729a 100644
--- a/scripts/Dockerfile.action
+++ b/scripts/Dockerfile.action
@@ -5,7 +5,7 @@ WORKDIR /action-build
COPY action/ action/
COPY . .
RUN go build \
---ldflags="-X 'github.com/bytebase/bytebase/action/args.Version=${VERSION}' -X 'github.com/bytebase/bytebase/action/args.Gitcommit=${GIT_COMMIT}'" \
+--ldflags="-w -s -X 'github.com/bytebase/bytebase/action/args.Version=${VERSION}' -X 'github.com/bytebase/bytebase/action/args.Gitcommit=${GIT_COMMIT}'" \
-o bytebase-action action/*.go
FROM alpine:3.22