File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,10 @@ jobs:
306
306
307
307
conference_code=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ env.TF_WORKSPACE }}/pycon-frontend/conference-code)
308
308
echo "CONFERENCE_CODE=$conference_code" >> "$GITHUB_OUTPUT"
309
+
310
+ sentry_auth_token=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ env.TF_WORKSPACE }}/common/sentry-auth-token)
311
+ echo "::add-mask::$sentry_auth_token"
312
+ echo "SENTRY_AUTH_TOKEN=$sentry_auth_token" >> "$GITHUB_OUTPUT"
309
313
- name : Build and push
310
314
if : ${{ steps.image.outputs.image_exists == 0 }}
311
315
uses : docker/build-push-action@v6
@@ -326,6 +330,8 @@ jobs:
326
330
CMS_HOSTNAME=${{ steps.vars.outputs.cms_hostname }}
327
331
CONFERENCE_CODE=${{ steps.vars.outputs.conference_code }}
328
332
GIT_HASH=${{ steps.git.outputs.githash }}
333
+ secrets : |
334
+ "sentry_auth_token=${{ steps.vars.outputs.sentry_auth_token }}"
329
335
330
336
deploy-fe :
331
337
runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ WORKDIR /app
24
24
COPY --from=deps /app/node_modules ./node_modules
25
25
COPY . .
26
26
27
- RUN corepack enable pnpm && pnpm run build
27
+ RUN corepack enable pnpm
28
+ RUN --mount=type=secret,id=sentry_auth_token,env=SENTRY_AUTH_TOKEN \
29
+ pnpm run build
28
30
29
31
FROM base AS runner
30
32
WORKDIR /app
Original file line number Diff line number Diff line change @@ -130,4 +130,6 @@ const nextConfig = {
130
130
131
131
module . exports = withSentryConfig ( nextConfig , {
132
132
authToken : SENTRY_AUTH_TOKEN ,
133
+ org : "python-italia" ,
134
+ project : "pycon-frontend" ,
133
135
} ) ;
You can’t perform that action at this time.
0 commit comments