Merge branch 'main' of https://git.dustin.coffee/hobokenchicken/blog
Some checks failed
Hugo CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-02-14 21:10:01 -05:00

View File

@@ -1,4 +1,16 @@
with: name: Hugo CI/CD
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: 172.20.1.231 host: 172.20.1.231
username: root username: root
password: ${{ secrets.SERVER_PASSWORD }} password: ${{ secrets.SERVER_PASSWORD }}
@@ -6,9 +18,11 @@ with:
cd /var/www/blog cd /var/www/blog
git pull origin main --recurse-submodules git pull origin main --recurse-submodules
# Build the site. This updates the /public folder. # Build the static site (The 'Hugo Way')
hugo --minify --baseURL="https://dustin.coffee" hugo --minify
# Caddy is already running as a service. pkill -f "hugo server" || true
# It sees the new files in /public immediately. sleep 2
# No restart or pkill required! nohup hugo server --bind 0.0.0.0 --port 1313 --baseURL=https://dustin.coffee --appendPort=false --disableLiveReload > /var/log/hugo.log 2>&1 &
sleep 3
curl -f https://dustin.coffee || echo "Health check failed - check /var/log/hugo.log"