From 56a240bc187428b42804dd0062c86ebda14c61d2 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 15 Dec 2023 09:53:48 +0000 Subject: [PATCH] Set up DD version and code tracking. --- packages/server/Dockerfile | 4 ++++ packages/worker/Dockerfile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/server/Dockerfile b/packages/server/Dockerfile index f737570fcd..2af37ae288 100644 --- a/packages/server/Dockerfile +++ b/packages/server/Dockerfile @@ -68,9 +68,13 @@ COPY packages/server/builder/ builder/ COPY packages/server/client/ client/ ARG BUDIBASE_VERSION +ARG GIT_COMMIT_SHA # Ensuring the version argument is sent RUN test -n "$BUDIBASE_VERSION" ENV BUDIBASE_VERSION=$BUDIBASE_VERSION +ENV DD_GIT_REPOSITORY_URL=https://github.com/budibase/budibase +ENV DD_GIT_COMMIT_SHA=$GIT_COMMIT_SHA +ENV DD_VERSION=$BUDIBASE_VERSION EXPOSE 4001 diff --git a/packages/worker/Dockerfile b/packages/worker/Dockerfile index 4706ca155a..b03a817c8b 100644 --- a/packages/worker/Dockerfile +++ b/packages/worker/Dockerfile @@ -51,8 +51,12 @@ ENV TENANT_FEATURE_FLAGS=*:LICENSING,*:USER_GROUPS,*:ONBOARDING_TOUR ENV ACCOUNT_PORTAL_URL=https://account.budibase.app ARG BUDIBASE_VERSION +ARG GIT_COMMIT_SHA # Ensuring the version argument is sent RUN test -n "$BUDIBASE_VERSION" ENV BUDIBASE_VERSION=$BUDIBASE_VERSION +ENV DD_GIT_REPOSITORY_URL=https://github.com/budibase/budibase +ENV DD_GIT_COMMIT_SHA=$GIT_COMMIT_SHA +ENV DD_VERSION=$BUDIBASE_VERSION CMD ["./docker_run.sh"]