2022-11-01 16:28:28 +00:00
|
|
|
image: alpine/edge
|
|
|
|
packages:
|
|
|
|
- openssh-client
|
|
|
|
- python3
|
|
|
|
- py3-pip
|
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~ajhalili2006/tildeweb
|
2023-01-19 11:35:32 +00:00
|
|
|
secrets:
|
|
|
|
- b4ffc5fb-bc8c-4e89-b38a-48b56155a443
|
2022-11-01 16:28:28 +00:00
|
|
|
triggers:
|
|
|
|
- action: email
|
|
|
|
condition: always
|
2023-01-19 11:35:32 +00:00
|
|
|
to: ~ajhalili2006/public-inbox@lists.sr.ht
|
|
|
|
cc: ajhalili2006@gmail.com
|
2022-11-01 16:28:28 +00:00
|
|
|
tasks:
|
2023-01-19 11:35:32 +00:00
|
|
|
- build: |
|
2023-01-19 11:45:18 +00:00
|
|
|
cd tildeweb && pip3 install -r requirements.txt --user
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
2023-01-19 11:35:32 +00:00
|
|
|
mkdocs build -d public -f mkdocs.yml && mkdocs build -d public_ctrl-c -f mkdocs.ctrl-c.yml
|
|
|
|
- deploy: |
|
2022-11-01 16:28:28 +00:00
|
|
|
cd tildeweb
|
|
|
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
2023-01-19 11:35:32 +00:00
|
|
|
eval $(ssh-agent) && ssh-add ~/.ssh/passwordless-auth-sshfs
|
|
|
|
rsync -rP public ajhalili2006@vern.cc:/home/ajhalili2006/public_html/
|
|
|
|
rsync -rP public_ctrl-c ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_html/
|
|
|
|
#rsync -rP gmi ajhalili2006@vern.cc:/home/ajhalili2006/public_gemini/
|
|
|
|
#rsync -rP gmi ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_gemini/
|