mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-25 09:53:46 +00:00
Andrei Jiroh Halili
d9b6b87724
Also in this commit, we also apply changes needed for the use of social cards in the theme we do use. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
66 lines
No EOL
2.1 KiB
YAML
66 lines
No EOL
2.1 KiB
YAML
image: alpine/edge
|
|
environment:
|
|
FF_ENABLE_COMMIT_DATA: "true"
|
|
FF_GENERATE_SOCIAL_CARDS: "true"
|
|
packages:
|
|
- openssh-client
|
|
- python3
|
|
- py3-pip
|
|
- py3-wheel
|
|
- py3-setuptools
|
|
- cairo-dev
|
|
- freetype-dev
|
|
- libffi-dev
|
|
- jpeg-dev
|
|
- libpng-dev
|
|
- zlib-dev
|
|
sources:
|
|
- https://git.sr.ht/~ajhalili2006/tildeweb
|
|
secrets:
|
|
- b4ffc5fb-bc8c-4e89-b38a-48b56155a443
|
|
triggers:
|
|
- action: email
|
|
condition: always
|
|
to: ~ajhalili2006/public-inbox@lists.sr.ht
|
|
cc: ajhalili2006@gmail.com
|
|
tasks:
|
|
# in case of triggered from hottub
|
|
- repo-sync: |
|
|
cd tildeweb
|
|
env # for debugging purposes only
|
|
|
|
git remote add hub https://github.com/ajhalili2006/tildeverse-web && git pull hub main
|
|
git remote add lab https://mau.dev/ajhalili2006/tildeverse-web && git pull lab main
|
|
|
|
if [ "$BUILD_REASON" != "patchset" ] && [ "$BUILD_SUBMITTER" != "hub.sr.ht" ]; then
|
|
git remote set-url origin ssh://git@git.sr.ht/~ajhalili2006/tildeweb
|
|
fi
|
|
- build: |
|
|
cd tildeweb && pip3 install -r requirements.txt --user
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
|
|
mkdocs build -d public -f mkdocs.yml
|
|
- generate-archive: |
|
|
cd tildeweb
|
|
tar cvzf tildeweb-prod-build.tar.gz public
|
|
- deploy: |
|
|
if [ "$BUILD_REASON" == "patchset" ] && [ "$BUILD_SUBMITTER" == "hub.sr.ht" ]; then
|
|
complete-build
|
|
exit 0
|
|
elif [ ! -f "$HOME/.ssh/passowrdless-auth-sshfs" ]; then
|
|
complete-build
|
|
exit 0
|
|
fi
|
|
|
|
cd tildeweb
|
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
|
eval $(ssh-agent) && ssh-add ~/.ssh/passwordless-auth-sshfs
|
|
rsync -rP public ajhalili2006@vern.cc:/home/ajhalili2006/public_html/ || true
|
|
rsync -rP public ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_html/ || true
|
|
#rsync -rP gmi ajhalili2006@vern.cc:/home/ajhalili2006/public_gemini/
|
|
#rsync -rP gmi ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_gemini/
|
|
|
|
git push origin -o skip-ci
|
|
git remote set-url lab ssh://git@mau.dev/ajhalili2006/tildeverse-web && git push lab main
|
|
artifacts:
|
|
- tildeweb/tildeweb-prod-build.tar.gz |