Skip to content

Commit

Permalink
Merge pull request #142 from DiSSCo/AddEnvVariableForKeycloakClient
Browse files Browse the repository at this point in the history
Second try
  • Loading branch information
TomDijkema authored Dec 11, 2024
2 parents 462bdf7 + 275e4a1 commit e029fd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
env:
VITE_KEYCLOAK_CLIENT: ${{ matrix.keycloak_client }}
build-args: |
"VITE_KEYCLOAK_CLIENT=${{ matrix.keycloak_token }}"
- name: Set outputs
id: vars
Expand Down
4 changes: 4 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ RUN cp 'src/app/GenerateTypes.js' 'src/app/GenerateTypes.cjs'
RUN rm 'src/app/GenerateTypes.js'
RUN node 'src/app/GenerateTypes.cjs'

# Set env variables
ARG VITE_KEYCLOAK_CLIENT
ENV VITE_KEYCLOAK_CLIENT ${VITE_KEYCLOAK_CLIENT}

# Setting app to production build
RUN npm run build

Expand Down

0 comments on commit e029fd7

Please sign in to comment.