[Forgejo] Swap to using docker image

This commit is contained in:
JP Hastings-Spital 2025-01-14 17:39:46 +00:00
parent 13413850c9
commit 4bad34680b
2 changed files with 11 additions and 16 deletions

View file

@ -14,6 +14,11 @@ on:
jobs: jobs:
build: build:
runs-on: docker runs-on: docker
container:
image: git.byjp.me/jp/hugo-tasks:latest
volumes:
- /pages/www.byjp.me/:/pages/www.byjp.me/
- /gemini/www.byjp.me/:/gemini/www.byjp.me/
steps: steps:
- name: Checkout - name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4 uses: https://code.forgejo.org/actions/checkout@v4
@ -26,20 +31,10 @@ jobs:
with: with:
path: /tmp/hugo path: /tmp/hugo
key: www.byjp.me-hugo-persistent-info key: www.byjp.me-hugo-persistent-info
- name: Build site
uses: https://git.byjp.me/jp/hugo-tasks@v0.1
- name: Publish website - name: Build + publish web site + gemini capsule
run: | run: |
rm -r /pages/www.byjp.me/* /pages/www.byjp.me/.* task build
cp -r ./public/. /pages/www.byjp.me rsync -a --delete ./public/. /pages/www.byjp.me
task gemini-reduce
- name: Build Gemini capsule rsync -a --delete ./public/. /gemini/www.byjp.me
uses: https://git.byjp.me/jp/hugo-tasks@v0.1
with:
tasks: gemini-reduce
- name: Publish Gemini capsule
run: |
rm -r /gemini/www.byjp.me/* /gemini/www.byjp.me/.*
cp -r ./public/. /gemini/www.byjp.me

View file

@ -36,7 +36,7 @@ tasks:
cache: /tmp/hugo/cache cache: /tmp/hugo/cache
cmds: cmds:
- hugo --cacheDir {{ .cache }} --gc --minify --baseURL "https://{{ .domain }}" - hugo --cacheDir {{ .cache }} --gc --minify --baseURL "https://{{ .domain }}"
- pagefind - pagefind --silent
import: import:
desc: Pulls information from various other sites/silos into this repo. Expects `./tools/.env` to be populated. desc: Pulls information from various other sites/silos into this repo. Expects `./tools/.env` to be populated.