diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index f2ca59f..43d6091 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -21,7 +21,7 @@ jobs: - name: 🪚 Build app run: | - npm install + npm ci --silent npm run build - name: 🔑 Login Docker @@ -29,13 +29,13 @@ jobs: - name: 🐳 Build Docker image run: | - IMAGE_ID=ghcr.io/dataesr/ticket-office + IMAGE_ID=ghcr.io/${{ github.repository }} IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') - docker build -t $IMAGE_ID:staging . --build-arg VITE_SCANR_API_AUTHORIZATION=${{ secrets.VITE_SCANR_API_AUTHORIZATION }} + docker build -t $IMAGE_ID:staging . - name: 📦 Push Docker image run: | - IMAGE_ID=ghcr.io/dataesr/ticket-office + IMAGE_ID=ghcr.io/${{ github.repository }} IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') docker push $IMAGE_ID:staging diff --git a/Dockerfile b/Dockerfile index e1fbfb5..9e2ebb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ FROM nginx:stable -ARG VITE_SCANR_API_AUTHORIZATION -ENV VITE_SCANR_API_AUTHORIZATION=$VITE_SCANR_API_AUTHORIZATION COPY dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/templates/nginx.conf.template -EXPOSE 5173 \ No newline at end of file +EXPOSE 3000 \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index e605f79..58676f7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,6 @@ -import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; export default defineConfig({ - base: "/", plugins: [react()], });