Skip to content

Commit

Permalink
fix(env): update dockerfile and workflow to add env
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Apr 25, 2024
1 parent 67b48b7 commit aecfb65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
IMAGE_ID=ghcr.io/dataesr/ticket-office
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
docker build -t $IMAGE_ID:staging .
docker build Dockerfile -t $IMAGE_ID:staging . --build-arg VITE_SCANR_API_AUTHORIZATION=${{ secrets.VITE_SCANR_API_AUTHORIZATION }} VITE_BREVO_API_AUTHORIZATION=${{ secrets.VITE_BREVO_API_AUTHORIZATION }} .
- name: 📦 Push Docker image
run: |
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ RUN npm install

COPY . .

ARG VITE_SCANR_API_AUTHORIZATION
ARG VITE_BREVO_API_AUTHORIZATION

ENV VITE_SCANR_API_AUTHORIZATION=$VITE_SCANR_API_AUTHORIZATION
ENV VITE_BREVO_API_AUTHORIZATION=$VITE_BREVO_API_AUTHORIZATION

RUN npm run build

EXPOSE 5173
Expand Down

0 comments on commit aecfb65

Please sign in to comment.