diff --git a/.github/workflows/deploy-eb.yml b/.github/workflows/deploy-eb.yml index 28496d0238..1ba9dac805 100644 --- a/.github/workflows/deploy-eb.yml +++ b/.github/workflows/deploy-eb.yml @@ -85,6 +85,8 @@ jobs: APP_VERSION=${{env.APP_VERSION}} APP_URL=${{secrets.APP_URL}} REPO_URL=${{github.server_url}}/${{github.repository}} + DD_GIT_REPOSITORY_URL=${{github.server_url}}/${{github.repository}} + DD_GIT_COMMIT_SHA=${{github.sha}} secrets: | "dd_api_key=${{ secrets.DD_API_KEY }}" diff --git a/Dockerfile.production b/Dockerfile.production index 6d8ec6ec5c..0c21cbf371 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -40,6 +40,11 @@ COPY . ./ # These options are only used in the build stage, not the start stage. ENV NODE_OPTIONS="--max-old-space-size=4096 --openssl-legacy-provider" +ARG DD_GIT_REPOSITORY_URL +ARG DD_GIT_COMMIT_SHA +ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL} +ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA} + RUN npm run build ARG APP_VERSION @@ -81,7 +86,7 @@ RUN mv /opt/formsg/dist/backend/shared /opt/formsg/ # https://www.npmjs.com/package/puppeteer-core?activeTab=versions for corresponding versions RUN apk add --no-cache \ -# Compatible chromium versions can be found here https://pkgs.alpinelinux.org/packages?name=chromium&branch=v3.18&repo=&arch=&maintainer= + # Compatible chromium versions can be found here https://pkgs.alpinelinux.org/packages?name=chromium&branch=v3.18&repo=&arch=&maintainer= chromium=119.0.6045.159-r0 \ nss \ freetype \