From 011e95df3a0a52ddc667286aa62179f20e6db8e9 Mon Sep 17 00:00:00 2001 From: Kevin Foong <55353265+kevin9foong@users.noreply.github.com> Date: Thu, 28 Nov 2024 21:01:28 +0800 Subject: [PATCH] fix: include dd secrets --- .github/workflows/deploy-ecs.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-ecs.yml b/.github/workflows/deploy-ecs.yml index 3ba20a26d9..fa29cb248c 100644 --- a/.github/workflows/deploy-ecs.yml +++ b/.github/workflows/deploy-ecs.yml @@ -38,8 +38,6 @@ jobs: # need this for the frontend build env vars - name: Checkout code 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 @@ -87,8 +85,12 @@ jobs: tags: | ${{ steps.login-ecr.outputs.registry }}/formsg/staging-alt3:${{ env.IMAGE_TAG }} ${{ steps.login-ecr.outputs.registry }}/formsg/staging-alt3:latest - cache-from: type=gha - cache-to: type=gha,mode=max + build-args: | + APP_VERSION=${{env.APP_VERSION}} + APP_URL=${{secrets.APP_URL}} + REPO_URL=${{github.server_url}}/${{github.repository}} + secrets: | + "dd_api_key=${{ secrets.DD_API_KEY }}" # - name: Update ECS service # run: | # aws ecs update-service \