Skip to content

fix(ci): Add environment variables for back to Dockerfile and both workflows #183

fix(ci): Add environment variables for back to Dockerfile and both workflows

fix(ci): Add environment variables for back to Dockerfile and both workflows #183

Workflow file for this run

name: Development - Pull Request
on:
pull_request:
branches:
- main
- 2025
jobs:
lint-format:
name: Linting and Formatting Checks
uses: ./.github/workflows/lint-and-format.yml
build:
needs: lint-format
name: Build
runs-on: ubuntu-latest
environment: Development
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- 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 }}
run: |
docker buildx build \
--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 \
--file=Dockerfile -t csclub-website .