diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 662cf35..ad6aadb 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -53,7 +53,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ghcr.io/importantus/rsswipe-frontend:main build-args: | - BACKEND_URL="https://backend.rsswipe.mcloud.digital" + VITE_BACKEND_URL=https://backend.rsswipe.mcloud.digital - name: Build and push Backend Docker image id: build-and-push-backend diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 85dee85..6fdfeff 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -4,12 +4,11 @@ WORKDIR /build COPY package.json package-lock.json ./ RUN npm install -ARG BACKEND_URL -ENV VITE_BACKEND_URL=$BACKEND_URL +ARG VITE_BACKEND_URL COPY . . RUN npm run build FROM git.mylab.th-luebeck.de:4181/vwprg/teaching/docker-archive/nginx:alpine as running COPY nginx.conf /etc/nginx/nginx.conf -COPY --from=building /build/dist /frontend/ \ No newline at end of file +COPY --from=building /build/dist /frontend/