Skip to content

Commit 2d40be7

Browse files
committed
fix?
1 parent 88fcf0a commit 2d40be7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build-frontend.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
sentry_auth_token=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ inputs.tf_environment }}/common/sentry-auth-token)
4343
echo "::add-mask::$sentry_auth_token"
4444
echo "SENTRY_AUTH_TOKEN=$sentry_auth_token" >> "$GITHUB_OUTPUT"
45+
46+
posthog_key=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ inputs.tf_environment }}/pycon-frontend/posthog-key)
47+
echo "::add-mask::$posthog_key"
48+
echo "POSTHOG_KEY=$posthog_key" >> "$GITHUB_OUTPUT"
4549
- name: Build and push
4650
uses: docker/build-push-action@v6
4751
with:
@@ -62,4 +66,5 @@ jobs:
6266
CONFERENCE_CODE=${{ steps.vars.outputs.conference_code }}
6367
GIT_HASH=${{ inputs.githash }}
6468
secrets: |
65-
"sentry_auth_token=${{ steps.vars.outputs.sentry_auth_token }}"
69+
sentry_auth_token=${{ steps.vars.outputs.sentry_auth_token }}
70+
posthog_key=${{ steps.vars.outputs.posthog_key }}

frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ COPY . .
2626

2727
RUN corepack enable pnpm
2828
RUN --mount=type=secret,id=sentry_auth_token,env=SENTRY_AUTH_TOKEN \
29+
--mount=type=secret,id=posthog_key,env=POSTHOG_KEY \
2930
pnpm run build
3031

3132
FROM base AS runner

0 commit comments

Comments
 (0)