Compare commits

...

3 commits

Author SHA1 Message Date
171e596358 update file links
All checks were successful
/ build (push) Successful in 5s
2024-11-25 17:21:50 -05:00
6886c6c42d add forgejo cicd
All checks were successful
/ build (push) Successful in 4s
2024-11-25 17:19:38 -05:00
0e185d172a migrate srht 2024-11-22 17:41:46 -05:00
3 changed files with 28 additions and 17 deletions

View file

@ -0,0 +1,23 @@
---
env:
DEPLOY_REMOTE: www-cfebscom@cfebs.com
on: [push]
jobs:
build:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: docker
container:
image: forge.cfebs.com/cfebs/node-util:20
steps:
- name: checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: build
run: python3 ./main.py
- name: deploy
run: |
eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.FORGE_DEPLOY_PRIVATE_KEY }}")
rsync -r --delete -v --rsh="ssh -o StrictHostKeyChecking=no" -r ./public/ $DEPLOY_REMOTE:/home/www-cfebscom/public/

View file

@ -1,12 +0,0 @@
---
default:
image: alpine:3.20
deploy-pages:
script:
- 'apk add python3 py3-markdown'
- python3 ./main.py
pages: true
artifacts:
paths:
- public

View file

@ -654,11 +654,11 @@ And - it was fun to write and write about.
View the complete source for generating this blog: View the complete source for generating this blog:
* [main.py](https://git.sr.ht/~cfebs/cfebs.srht.site/tree/main/item/main.py) * [main.py](https://forge.cfebs.com/cfebs/blog/src/branch/main/main.py)
* [index.html.tmpl](https://git.sr.ht/~cfebs/cfebs.srht.site/tree/main/item/index.html.tmpl) * [index.html.tmpl](https://forge.cfebs.com/cfebs/blog/src/branch/main/index.html.tmpl)
* [index.xml.tmpl](https://git.sr.ht/~cfebs/cfebs.srht.site/tree/main/item/index.xml.tmpl) * [index.xml.tmpl](https://forge.cfebs.com/cfebs/blog/src/branch/main/index.xml.tmpl)
Or the full repo tree: <https://git.sr.ht/~cfebs/cfebs.srht.site/tree> Or the full repo tree: <https://forge.cfebs.com/cfebs/blog>
## EDIT ## EDIT
@ -925,4 +925,4 @@ But now down to ~1.5s for 1000 posts 🎉
[4]: https://python-markdown.github.io/ [4]: https://python-markdown.github.io/
[5]: https://archlinux.org/packages/extra/any/python-markdown/ [5]: https://archlinux.org/packages/extra/any/python-markdown/
[hugo]: https://gohugo.io/ [hugo]: https://gohugo.io/
[duped]: https://git.sr.ht/~cfebs/cfebs.srht.site/commit/4b39494e827245ce1fbf1cbd983786e8db34c645 [duped]: https://forge.cfebs.com/cfebs/blog/commit/4b39494e827245ce1fbf1cbd983786e8db34c645