Skip to content

Commit

Permalink
fix: web build relying on FRONTEND_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff committed Nov 11, 2023
1 parent e60daa4 commit 0301021
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ensure-integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
with:
sub-project: web
token: ${{ secrets.GITHUB_TOKEN }}
build-args: |
FRONTEND_URL=${{ github.ref == 'refs/heads/master' && 'https://yestheory.family' || 'https://staging.yestheory.family' }}
docker-build-cms:
name: "Docker Build CMS"
Expand Down
2 changes: 2 additions & 0 deletions packages/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ RUN yarn workspaces focus
FROM node:20.9-alpine AS builder
WORKDIR /app

ARG FRONTEND_URL

# Copy node_modules and other side products from deps
COPY --from=deps /app/packages/web/ ./packages/web/
COPY --from=deps /app/node_modules/ ./node_modules/
Expand Down

0 comments on commit 0301021

Please sign in to comment.