Add PUBLIC_URL
This commit is contained in:
parent
af690c689c
commit
92ce3b5ba7
4
.github/workflows/build_restreamer-ui.yaml
vendored
4
.github/workflows/build_restreamer-ui.yaml
vendored
@ -19,6 +19,8 @@ jobs:
|
||||
run: |
|
||||
yarn install
|
||||
yarn build
|
||||
env:
|
||||
PUBLIC_URL: './'
|
||||
|
||||
- name: Upload React build as artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
@ -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
|
||||
|
||||
4
.github/workflows/build_restreamer_dev.yaml
vendored
4
.github/workflows/build_restreamer_dev.yaml
vendored
@ -21,6 +21,8 @@ jobs:
|
||||
run: |
|
||||
yarn install
|
||||
yarn build
|
||||
env:
|
||||
PUBLIC_URL: './'
|
||||
|
||||
- name: Upload React build as artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
@ -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
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
RELEASE=1.10.0
|
||||
CADDY_IMAGE=caddy:2.7.6-alpine
|
||||
PUBLIC_URL="./"
|
||||
@ -4,6 +4,8 @@ FROM $CADDY_IMAGE
|
||||
COPY build /ui/build
|
||||
COPY Caddyfile /ui/Caddyfile
|
||||
|
||||
ENV PUBLIC_URL="./"
|
||||
|
||||
WORKDIR /ui
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user