diff --git a/.github/workflows/deploy-ecs.yml b/.github/workflows/deploy-ecs.yml index c7d29d3f1c..86dec8488c 100644 --- a/.github/workflows/deploy-ecs.yml +++ b/.github/workflows/deploy-ecs.yml @@ -40,6 +40,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Setup secrets for datadog sourcemap deployment run: | echo "APP_VERSION=$(jq -r .version package.json)-$(echo ${GITHUB_REF##*/})-$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV diff --git a/Dockerfile.production b/Dockerfile.production index 8a6fc98853..d5b946392e 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -40,13 +40,13 @@ ARG REPO_URL # Upload datadog source maps from secret mount, id MUST be `id=dd_api_key` in the docker build command # Mount creates a file inside /run/secrets/dd_api_key, and source to load the environment variables # For the content of the mounted file is only accessible in the RUN command where it’s referred in, use && command. -RUN --mount=type=secret,id=dd_api_key \ - export DATADOG_API_KEY=$(cat /run/secrets/dd_api_key) && \ - npx @datadog/datadog-ci sourcemaps upload ./dist/frontend \ - --service=formsg-react \ - --release-version=$APP_VERSION \ - --minified-path-prefix=$APP_URL \ - --repository-url=$REPO_URL +# RUN --mount=type=secret,id=dd_api_key \ +# export DATADOG_API_KEY=$(cat /run/secrets/dd_api_key) && \ +# npx @datadog/datadog-ci sourcemaps upload ./dist/frontend \ +# --service=formsg-react \ +# --release-version=$APP_VERSION \ +# --minified-path-prefix=$APP_URL \ +# --repository-url=$REPO_URL RUN npm prune --production --legacy-peer-deps