Compare commits
4 Commits
44e206c78b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 190484040d | |||
| 2d8c892c50 | |||
| 12d3317866 | |||
| 15a2da9c05 |
@@ -1,28 +1,14 @@
|
|||||||
name: Hugo CI/CD
|
with:
|
||||||
|
host: 172.20.1.231
|
||||||
|
username: root
|
||||||
|
password: ${{ secrets.SERVER_PASSWORD }}
|
||||||
|
script: |
|
||||||
|
cd /var/www/blog
|
||||||
|
git pull origin main --recurse-submodules
|
||||||
|
|
||||||
on:
|
# Build the site. This updates the /public folder.
|
||||||
push:
|
hugo --minify --baseURL="https://dustin.coffee"
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
# Caddy is already running as a service.
|
||||||
deploy:
|
# It sees the new files in /public immediately.
|
||||||
runs-on: ubuntu-latest
|
# No restart or pkill required!
|
||||||
steps:
|
|
||||||
- name: Deploy via SSH
|
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: 172.20.1.231
|
|
||||||
username: root
|
|
||||||
password: ${{ secrets.SERVER_PASSWORD }}
|
|
||||||
script: |
|
|
||||||
cd /var/www/blog
|
|
||||||
git pull origin main --recurse-submodules
|
|
||||||
|
|
||||||
# Build the static site (The 'Hugo Way')
|
|
||||||
hugo --minify
|
|
||||||
|
|
||||||
pkill -f "hugo server" || true
|
|
||||||
sleep 2
|
|
||||||
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"
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: "fresh brew overhaul: hugo, gitea actions, ai skills, and site tweaks"
|
title: "fresh brew overhaul: hugo, gitea actions, ai skills, and site tweaks"
|
||||||
date: YYYY-MM-DD HH:MM:SS -0000
|
date: "2026-02-13"
|
||||||
categories: [tech, development, ai, projects]
|
categories: [tech, development, ai, projects]
|
||||||
tags: [hugo, gitea, agents, skills, automation, blog]
|
tags: [hugo, gitea, agents, skills, automation, blog]
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user