Skip to content

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

chore: githash (#15967)

Danny Xu0d0fe9279123
diff --git a/frontend/package.json b/frontend/package.json
index 8a8c1bee1d..41e4c27d16 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -5,11 +5,10 @@
"copy:monaco-workers": "sh ./scripts/copy_monaco_workers.sh",
"copy:config-files": "sh ./scripts/copy_config_files.sh",
"copy:all": "npm run copy:monaco-workers && npm run copy:config-files",
- "dev": "export GIT_COMMIT=`git rev-parse HEAD` && export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite --mode dev-local",
- "release": "export GIT_COMMIT=`git rev-parse HEAD` && export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite build --mode release --outDir=../backend/server/dist --emptyOutDir",
- "dev-embed": "export GIT_COMMIT=`git rev-parse HEAD` && export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite build --mode dev --outDir=../backend/server/dist --emptyOutDir",
- "release-docker": "export GIT_COMMIT=`git rev-parse HEAD` && export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite build --mode release",
- "release-aws": "export GIT_COMMIT=`git rev-parse HEAD` && export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite build --mode release-aws",
+ "dev": "export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite --mode dev-local",
+ "release": "export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite build --mode release --outDir=../backend/server/dist --emptyOutDir",
+ "release-docker": "export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite build --mode release",
+ "release-aws": "export NODE_OPTIONS=--max_old_space_size=8000 && npm run copy:all && vite build --mode release-aws",
"lint": "eslint --cache src",
"bundle-visualize": "vite-bundle-visualizer -c vite.config.ts",
"type-check": "export NODE_OPTIONS=--max_old_space_size=8000 && vue-tsc --build --force",
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 20277de487..d2c4f5d6bc 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -1,4 +1,5 @@
FROM node:23.11.0-slim AS frontend
+ARG GIT_COMMIT
RUN npm i -g [email protected]
@@ -10,14 +11,13 @@ RUN pnpm --dir ./frontend i
RUN pnpm --dir ./frontend release-docker
FROM golang:1.24.2-alpine3.21 AS backend
-ADD go.mod go.sum /
-RUN go mod download
-
-ARG TARGETARCH
ARG VERSION
ARG GIT_COMMIT
ARG RELEASE="release"
+ADD go.mod go.sum /
+
+RUN go mod download
RUN apk add --no-cache build-base krb5-dev binutils-gold
WORKDIR /backend-build
@@ -27,8 +27,6 @@ COPY . .
# Copy frontend asset
COPY --from=frontend /frontend-build/frontend/dist ./backend/server/dist
-COPY ./scripts/VERSION .
-
# -ldflags="-w -s" means omit DWARF symbol table and the symbol table and debug information
RUN go build \
--tags "${RELEASE},embed_frontend,docker" \
@@ -37,8 +35,6 @@ RUN go build \
# Use debian because mysql requires glibc.
FROM alpine:3.21 AS monolithic
-
-ARG TARGETARCH
ARG VERSION
ARG GIT_COMMIT
diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.aws
index 628884742a..86a517347b 100644
--- a/scripts/Dockerfile.aws
+++ b/scripts/Dockerfile.aws
@@ -1,4 +1,5 @@
FROM node:23.11.0-slim AS frontend
+ARG GIT_COMMIT
RUN npm i -g [email protected]
@@ -10,14 +11,13 @@ RUN pnpm --dir ./frontend i
RUN pnpm --dir ./frontend release-aws
FROM golang:1.24.2-alpine3.21 AS backend
-ADD go.mod go.sum /
-RUN go mod download
-
-ARG TARGETARCH
ARG VERSION
ARG GIT_COMMIT
ARG RELEASE="release"
+ADD go.mod go.sum /
+
+RUN go mod download
RUN apk add --no-cache build-base krb5-dev binutils-gold
WORKDIR /backend-build
@@ -27,8 +27,6 @@ COPY . .
# Copy frontend asset
COPY --from=frontend /frontend-build/frontend/dist ./backend/server/dist
-COPY ./scripts/VERSION .
-
# -ldflags="-w -s" means omit DWARF symbol table and the symbol table and debug information
RUN go build \
--tags "${RELEASE},embed_frontend,aws" \
@@ -37,8 +35,6 @@ RUN go build \
# Use debian because mysql requires glibc.
FROM alpine:3.21 AS monolithic
-
-ARG TARGETARCH
ARG VERSION
ARG GIT_COMMIT