Skip to content

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

chore: remove version suffix (#15547)

Danny Xu99d3af460d25
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index e116a8e37c..47808fe0c6 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -24,7 +24,6 @@ RUN go mod download
ARG TARGETARCH
ARG VERSION="development"
-ARG VERSION_SUFFIX=""
ARG GIT_COMMIT="unknown"
ARG RELEASE="release"
@@ -51,7 +50,7 @@ COPY ./scripts/VERSION .
RUN if [ "$TARGETARCH" = "arm64" ]; then \
CC=aarch64-linux-gnu-gcc && CC_FOR_TARGET=gcc-aarch64-linux-gnu; \
fi && \
- VERSION=`cat ./scripts/VERSION`${VERSION_SUFFIX} && CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH CC=$CC CC_FOR_TARGET=$CC_FOR_TARGET go build \
+ VERSION=`cat ./scripts/VERSION` && CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH CC=$CC CC_FOR_TARGET=$CC_FOR_TARGET go build \
--tags "${RELEASE},embed_frontend,docker" \
-ldflags="-w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${GIT_COMMIT}'" \
-o bytebase \
diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.aws
index d10014ff8b..d9d2d3450a 100644
--- a/scripts/Dockerfile.aws
+++ b/scripts/Dockerfile.aws
@@ -24,7 +24,6 @@ RUN go mod download
ARG TARGETARCH
ARG VERSION="development"
-ARG VERSION_SUFFIX=""
ARG GIT_COMMIT="unknown"
ARG PRODUCT_ID="prod-n4dmmye4e6hjo"
@@ -52,7 +51,7 @@ COPY ./scripts/VERSION .
RUN if [ "$TARGETARCH" = "arm64" ]; then \
CC=aarch64-linux-gnu-gcc && CC_FOR_TARGET=gcc-aarch64-linux-gnu; \
fi && \
- VERSION=`cat ./scripts/VERSION`${VERSION_SUFFIX} && CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH CC=$CC CC_FOR_TARGET=$CC_FOR_TARGET go build \
+ VERSION=`cat ./scripts/VERSION` && CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH CC=$CC CC_FOR_TARGET=$CC_FOR_TARGET go build \
--tags "${RELEASE},embed_frontend,aws" \
-ldflags="-w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${GIT_COMMIT}'" \
-o bytebase \
diff --git a/scripts/Dockerfile.depot b/scripts/Dockerfile.depot
index fa3379f2ec..7f964763ef 100644
--- a/scripts/Dockerfile.depot
+++ b/scripts/Dockerfile.depot
@@ -3,7 +3,6 @@ ADD go.mod go.sum /
RUN go mod download
ARG VERSION="development"
-ARG VERSION_SUFFIX=""
ARG GIT_COMMIT="unknown"
ARG RELEASE="release"
@@ -25,7 +24,7 @@ COPY . .
RUN if [ "$TARGETARCH" = "arm64" ]; then \
CC=aarch64-linux-gnu-gcc && CC_FOR_TARGET=gcc-aarch64-linux-gnu; \
fi && \
- VERSION=`cat ./scripts/VERSION`${VERSION_SUFFIX} && CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH CC=$CC CC_FOR_TARGET=$CC_FOR_TARGET go build \
+ VERSION=`cat ./scripts/VERSION` && CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH CC=$CC CC_FOR_TARGET=$CC_FOR_TARGET go build \
--tags "${RELEASE},embed_frontend,docker" \
-ldflags="-w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${GIT_COMMIT}'" \
-o bytebase \