mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
[Forgejo] Swap to using docker image
This commit is contained in:
parent
13413850c9
commit
4bad34680b
2 changed files with 11 additions and 16 deletions
|
@ -14,6 +14,11 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
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:
|
||||
- name: Checkout
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
@ -26,20 +31,10 @@ jobs:
|
|||
with:
|
||||
path: /tmp/hugo
|
||||
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: |
|
||||
rm -r /pages/www.byjp.me/* /pages/www.byjp.me/.*
|
||||
cp -r ./public/. /pages/www.byjp.me
|
||||
|
||||
- name: Build Gemini capsule
|
||||
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
|
||||
task build
|
||||
rsync -a --delete ./public/. /pages/www.byjp.me
|
||||
task gemini-reduce
|
||||
rsync -a --delete ./public/. /gemini/www.byjp.me
|
||||
|
|
|
@ -36,7 +36,7 @@ tasks:
|
|||
cache: /tmp/hugo/cache
|
||||
cmds:
|
||||
- hugo --cacheDir {{ .cache }} --gc --minify --baseURL "https://{{ .domain }}"
|
||||
- pagefind
|
||||
- pagefind --silent
|
||||
|
||||
import:
|
||||
desc: Pulls information from various other sites/silos into this repo. Expects `./tools/.env` to be populated.
|
||||
|
|
Loading…
Reference in a new issue