From 0cafbedb9a1086d604bc69e823f2eb35ad144c41 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 17 Dec 2024 22:17:35 +0300 Subject: [PATCH] Change secret setup --- .github/workflows/ci_cd.yml | 3 +++ frontend/Dockerfile | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 5b2c8a80fa4..877bc506435 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -153,6 +153,9 @@ jobs: - determine-images steps: + - name: Checkout repository + uses: actions/checkout@v4 + # Sets up `just` and Node.js. # Node.js is needed for the frontend to download translations. # `just` is needed to run the recipes and set build args. diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 215528735b3..2974aaf9104 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -47,12 +47,11 @@ ENV NODE_ENV=production ENV NODE_OPTIONS="--max_old_space_size=4096" ENV SEMANTIC_VERSION=${SEMANTIC_VERSION} -RUN printenv - RUN --mount=type=secret,id=sentry_auth_token \ - export SENTRY_AUTH_TOKEN="$(cat /run/secrets/sentry_auth_token)" + SENTRY_AUTH_TOKEN="$(cat /run/secrets/sentry_auth_token)" && \ + export SENTRY_AUTH_TOKEN && \ + printenv -RUN printenv RUN pnpm build ############ # Nuxt app #