Skip to content

Commit

Permalink
👷 Fix backend_url build arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Draculente committed Jan 22, 2024
1 parent 79fd359 commit 4e42bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
COPY --from=building /build/dist /frontend/

0 comments on commit 4e42bf1

Please sign in to comment.