Skip to content

Commit

Permalink
Change secret setup
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Dec 17, 2024
1 parent ce9d35e commit 0cafbed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 3 additions & 4 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
Expand Down

0 comments on commit 0cafbed

Please sign in to comment.