diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index c747811..a530d78 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -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: | diff --git a/Dockerfile b/Dockerfile index a2e0973..87af4aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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