Skip to content

Commit

Permalink
fix(ci): Add secrets to production Docker build (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira authored Feb 4, 2025
1 parent c6d60f5 commit 5b165ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,19 @@ jobs:
- name: Build Docker container
env:
NEXT_PUBLIC_KEYCLOAK_REDIRECT_URI: ${{ secrets.NEXT_PUBLIC_KEYCLOAK_REDIRECT_URI }}
NEXT_PUBLIC_AUTH_KEYCLOAK_ISSUER: ${{ secrets.NEXT_PUBLIC_AUTH_KEYCLOAK_ISSUER }}
NEXT_PUBLIC_DRIVE_LINK: ${{ secrets.NEXT_PUBLIC_DRIVE_LINK }}
NEXT_PUBLIC_UMAMI_WEBSITE_ID: ${{ secrets.NEXT_PUBLIC_UMAMI_WEBSITE_ID }}
PRODUCTION_BUILD: 'true'
run: |
docker buildx build \
--cache-from=type=local,src=/tmp/.buildx-cache \
--cache-to=type=local,dest=/tmp/.buildx-cache-new,mode=max \
--secret id=NEXT_PUBLIC_KEYCLOAK_REDIRECT_URI \
--secret id=NEXT_PUBLIC_AUTH_KEYCLOAK_ISSUER \
--secret id=NEXT_PUBLIC_DRIVE_LINK \
--secret id=NEXT_PUBLIC_UMAMI_WEBSITE_ID \
--output type=docker,dest=csclub-website.tar \
--platform=linux/arm64 --file=Dockerfile -t csclub-website .
gzip csclub-website.tar
Expand Down

0 comments on commit 5b165ea

Please sign in to comment.