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