diff --git a/.github/workflows/sub-build-push-image.yml b/.github/workflows/sub-build-push-image.yml index 4ecbf4dd..1aba70a2 100644 --- a/.github/workflows/sub-build-push-image.yml +++ b/.github/workflows/sub-build-push-image.yml @@ -96,6 +96,9 @@ jobs: NEXT_PUBLIC_GTM_ID=${{ vars.NEXT_PUBLIC_GTM_ID }} NEXT_PUBLIC_ORY_SDK_URL=${{ vars.NEXT_PUBLIC_ORY_SDK_URL }} NEXT_PUBLIC_SENTRY_DSN=${{ vars.NEXT_PUBLIC_SENTRY_DSN }} + SENTRY_ORG=${{ vars.SENTRY_ORG }} + SENTRY_PROJECT=${{ vars.SENTRY_PROJECT }} + SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} secrets: | "AWS_EXPORTS_JSON=${{ secrets.AWS_EXPORTS_JSON || ''}}" diff --git a/Dockerfile b/Dockerfile index afaa1307..b70b7c04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,15 @@ ENV NEXT_PUBLIC_ORY_SDK_URL=${NEXT_PUBLIC_ORY_SDK_URL} ARG NEXT_PUBLIC_SENTRY_DSN ENV NEXT_PUBLIC_SENTRY_DSN=${NEXT_PUBLIC_SENTRY_DSN} +ARG SENTRY_AUTH_TOKEN +ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} + +ARG SENTRY_ORG +ENV SENTRY_ORG=${SENTRY_ORG} + +ARG SENTRY_PROJECT +ENV SENTRY_PROJECT=${SENTRY_PROJECT} + # Install corepack and set pnpm as default package manager ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" @@ -45,6 +54,12 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-l # Rebuild the source code only when needed FROM base AS build +RUN <