Bind media volume on runner container
Some checks failed
Build Eleventy Site / build (push) Failing after 2m5s
Some checks failed
Build Eleventy Site / build (push) Failing after 2m5s
so that the built site can be copied to the document root for the site
This commit is contained in:
parent
cefc6dccba
commit
181437b7d0
1 changed files with 7 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: node:18
|
image: node:18
|
||||||
|
volumes:
|
||||||
|
- /media/Media:/media/Media
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
@ -24,6 +26,11 @@ jobs:
|
||||||
- name: Build Eleventy site
|
- name: Build Eleventy site
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Debugging step
|
||||||
|
run: |
|
||||||
|
echo '/media: $(ls /media)'
|
||||||
|
echo '/media/Media: $(ls /media/Media)'
|
||||||
|
|
||||||
- name: Move built site
|
- name: Move built site
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue