Skip to content

Commit 45ebb26

Browse files
gautamg795Convex, Inc.
authored andcommitted
add build arg that allows specifying git sha and timestamp (#33843)
When left blank, nothing different happens We'll want to specify this with `--build-arg` when we're performing "official" builds. GitOrigin-RevId: 382de91ea3e73bcae0777ff80e1b3eab7799e1ca
1 parent 98cec41 commit 45ebb26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

self-hosted/Dockerfile.backend

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ RUN --mount=type=cache,target=/convex/target/ --mount=type=cache,target=/usr/loc
7272
COPY . .
7373

7474
# Build the convex-local-backend binary
75+
ARG VERGEN_GIT_SHA
76+
ARG VERGEN_GIT_COMMIT_TIMESTAMP
7577
RUN --mount=type=cache,target=/convex/npm-packages/common/temp/,sharing=locked --mount=type=cache,target=/convex/target/ --mount=type=cache,target=/usr/local/cargo/git/db --mount=type=cache,target=/usr/local/cargo/registry/ <<EOF
78+
export VERGEN_GIT_SHA=${VERGEN_GIT_SHA}
79+
export VERGEN_GIT_COMMIT_TIMESTAMP=${VERGEN_GIT_COMMIT_TIMESTAMP}
7680
cargo build --release -p local_backend --bin convex-local-backend
7781
cp target/release/convex-local-backend .
7882
cargo build --release -p keybroker --bin generate_key

0 commit comments

Comments
 (0)