Skip to content

Commit

Permalink
Add PUBLIC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jstabenow committed Feb 2, 2024
1 parent af690c6 commit 92ce3b5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build_restreamer-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: |
yarn install
yarn build
env:
PUBLIC_URL: './'

- name: Upload React build as artifact
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -92,7 +94,7 @@ jobs:
context: .
file: ./Dockerfile.workflow
build-args: |
PUBLIC_URL=/ui
PUBLIC_URL=${{ env.PUBLIC_URL }}
CADDY_IMAGE=${{ env.CADDY_IMAGE }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build_restreamer_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: |
yarn install
yarn build
env:
PUBLIC_URL: './'

- name: Upload React build as artifact
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -92,7 +94,7 @@ jobs:
context: .
file: ./Dockerfile.workflow
build-args: |
PUBLIC_URL=/ui
PUBLIC_URL=${{ env.PUBLIC_URL }}
CADDY_IMAGE=${{ env.CADDY_IMAGE }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
Expand Down
1 change: 1 addition & 0 deletions .github_build/Build.restreamer-ui.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
RELEASE=1.10.0
CADDY_IMAGE=caddy:2.7.6-alpine
PUBLIC_URL="./"
2 changes: 2 additions & 0 deletions Dockerfile.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ FROM $CADDY_IMAGE
COPY build /ui/build
COPY Caddyfile /ui/Caddyfile

ENV PUBLIC_URL="./"

WORKDIR /ui

EXPOSE 3000
Expand Down

0 comments on commit 92ce3b5

Please sign in to comment.