Skip to content

Commit

Permalink
ci: add public environment vars to next.js build step
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqu committed Mar 25, 2024
1 parent 34cfcaf commit fdc8195
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ jobs:

- name: Build
run: npm run build
env:
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.NEXT_PUBLIC_SENTRY_DSN_PROD }}
NEXT_PUBLIC_IS_SENTRY_ENABLED: ${{ secrets.NEXT_PUBLIC_IS_SENTRY_ENABLED_PROD }}
NEXT_PUBLIC_ZEPLIN_WEB_APP_BASE_URL: ${{ secrets.NEXT_PUBLIC_ZEPLIN_WEB_APP_BASE_URL_PROD }}
NEXT_PUBLIC_ZEPLIN_APP_URI_SCHEME: ${{ secrets.NEXT_PUBLIC_ZEPLIN_APP_URI_SCHEME_PROD }}
NEXT_PUBLIC_ENVIRONMENT: ${{ inputs.environment }}

- name: Install dependencies without devDependencies
run: npm ci --omit=dev --ignore-scripts
Expand Down

0 comments on commit fdc8195

Please sign in to comment.