Bind media volume on runner container
All checks were successful
Build Eleventy Site / build (push) Successful in 1m34s

so that the built site can be copied to the document root for the site
This commit is contained in:
Devon Campbell 2025-03-03 22:33:58 -05:00
commit 26ebb1c0d3

View file

@ -10,6 +10,8 @@ jobs:
runs-on: docker
container:
image: node:18
volumes:
- /media/Media:/media/Media
steps:
- name: Checkout code
@ -28,10 +30,10 @@ jobs:
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "Deploying production..."
mv dist/* /media/Media/sites/devon.lol
rm -rf /media/Media/sites/devon.lol && mkdir /media/Media/sites/devon.lol && mv dist/* /media/Media/sites/devon.lol
echo "Running webmention..."
webmention dist/feed.xml --send
else
echo "Deploying staging..."
mv dist/* /media/Media/sites/staging.devon.lol
rm -rf /media/Media/sites/staging.devon.lol && mkdir /media/Media/sites/staging.devon.lol && mv dist/* /media/Media/sites/staging.devon.lol
fi