Compare commits
3 commits
171e596358
...
e0d63e0eda
Author | SHA1 | Date | |
---|---|---|---|
e0d63e0eda | |||
9fe87f1a49 | |||
10df7c49a8 |
4 changed files with 29 additions and 18 deletions
23
.forgejo/workflows/cicd.yaml
Normal file
23
.forgejo/workflows/cicd.yaml
Normal 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/
|
|
@ -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
|
|
|
@ -1,4 +1,4 @@
|
||||||
# cfebs.srht.site
|
# cfebs.com
|
||||||
|
|
||||||
A blog generator.
|
A blog generator.
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue