Updated workflow using proper docker volume mapping.
This commit is contained in:
parent
ed306a26d2
commit
9150a22b5b
1 changed files with 9 additions and 3 deletions
|
|
@ -10,19 +10,25 @@ on:
|
|||
- 'master'
|
||||
- 'main'
|
||||
|
||||
env:
|
||||
NGINX_STATIC: ${{ vars.NGINX_STATIC }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Deploy
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
options: --volume "${NGINX_STATIC}:/usr/share/nginx/static:rw"
|
||||
steps:
|
||||
-
|
||||
name: Echo NGINX_STATIC
|
||||
run: echo ${NGINX_STATIC}
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
-
|
||||
name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
# with:
|
||||
# version: 9.2.0
|
||||
-
|
||||
name: Install dependencies
|
||||
run: pnpm install
|
||||
|
|
@ -31,4 +37,4 @@ jobs:
|
|||
run: pnpm run build
|
||||
-
|
||||
name: Copy files to public folder
|
||||
run: rm -rdf ${{ vars.PUBLIC_DIR }}; mkdir -p ${{ vars.PUBLIC_DIR }}; cp -rf public/* ${{ vars.PUBLIC_DIR }}
|
||||
run: mkdir /usr/share/nginx/static/fpv; cp -rf public/* /usr/share/nginx/static/fpv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue