diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index a530d78..317949c 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -31,8 +31,7 @@ jobs: run: | 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 }} . + docker build Dockerfile -t $IMAGE_ID:staging . --build-arg VITE_SCANR_API_AUTHORIZATION=${{ secrets.VITE_SCANR_API_AUTHORIZATION }} . - name: 📦 Push Docker image run: | diff --git a/Dockerfile b/Dockerfile index 87af4aa..5186f65 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,8 @@ 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