2022-11-01 16:28:28 +00:00
|
|
|
image: alpine/edge
|
2023-03-23 17:53:16 +00:00
|
|
|
environment:
|
|
|
|
FF_ENABLE_COMMIT_DATA: "true"
|
2023-03-24 17:36:48 +00:00
|
|
|
FF_GENERATE_SOCIAL_CARDS: "true"
|
2023-10-06 17:08:30 +00:00
|
|
|
#SKIP_VENV_SETUP: "true"
|
2023-10-08 02:15:54 +00:00
|
|
|
oauth: "pages.sr.ht/SITES:RW pages.sr.ht/PAGES:RW pages.sr.ht/PROFILE"
|
2022-11-01 16:28:28 +00:00
|
|
|
packages:
|
|
|
|
- openssh-client
|
2023-10-06 16:58:45 +00:00
|
|
|
- rsync
|
2022-11-01 16:28:28 +00:00
|
|
|
- python3
|
|
|
|
- py3-pip
|
2023-02-18 17:50:05 +00:00
|
|
|
- py3-wheel
|
|
|
|
- py3-setuptools
|
2023-03-24 17:36:48 +00:00
|
|
|
- cairo-dev
|
|
|
|
- freetype-dev
|
|
|
|
- libffi-dev
|
|
|
|
- jpeg-dev
|
|
|
|
- libpng-dev
|
|
|
|
- zlib-dev
|
2022-11-01 16:28:28 +00:00
|
|
|
sources:
|
2023-10-06 16:43:50 +00:00
|
|
|
- https://git.sr.ht/~ajhalili2006/web
|
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-02-18 17:50:05 +00:00
|
|
|
# in case of triggered from hottub
|
2023-10-06 17:08:30 +00:00
|
|
|
- setup: |
|
2023-10-06 16:58:45 +00:00
|
|
|
# https://www.jeffgeerling.com/blog/2023/how-solve-error-externally-managed-environment-when-installing-pip3
|
|
|
|
sudo rm /usr/lib/python3*/EXTERNALLY-MANAGED -rfv
|
|
|
|
|
2023-10-06 17:08:30 +00:00
|
|
|
# add pipenv for now
|
|
|
|
pip3 install pipenv --user
|
|
|
|
- build: |
|
2023-10-06 16:58:45 +00:00
|
|
|
cd web
|
|
|
|
|
|
|
|
# our build script handles both the install and build stuff itself
|
2023-01-19 11:45:18 +00:00
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
2023-10-07 03:23:56 +00:00
|
|
|
pipenv install --ignore-pipfile --deploy
|
2023-10-07 03:38:26 +00:00
|
|
|
TILDE_PUBLIC_HTML_BASE=https://ctrl-c.club/~ajhalili2006/ TARGET_DIR=build/ctrl-c.club ./bin/build.sh mkdocs.tilde.yml
|
|
|
|
TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.p.psf.lt TARGET_DIR=build/p.psf.lt ./bin/build.sh mkdocs.tilde.yml
|
|
|
|
TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.dimension.sh TARGET_DIR=build/dimension.sh ./bin/build.sh mkdocs.tilde.yml
|
2023-02-19 16:01:50 +00:00
|
|
|
- generate-archive: |
|
2023-10-06 16:49:51 +00:00
|
|
|
cd web
|
2023-10-07 03:23:56 +00:00
|
|
|
tar -C build -cvz . -f tildeweb-prod-build.tar.gz
|
2023-10-08 02:09:10 +00:00
|
|
|
- deploy-html: |
|
2023-10-06 16:49:51 +00:00
|
|
|
cd web
|
2023-10-06 16:43:50 +00:00
|
|
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
2023-10-08 02:09:10 +00:00
|
|
|
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' build/p.psf.lt/ ajhalili2006@p.projectsegfau.lt:/home/ajhalili2006/public_html/
|
|
|
|
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' build/ctrl-c.club/ ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_html/
|
|
|
|
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' build/dimension.sh/ ajhalili2006@s1.dimension.sh:/home/ajhalili2006/public_html/
|
2023-10-08 02:15:54 +00:00
|
|
|
- deploy-gemini: |
|
2023-10-08 02:09:10 +00:00
|
|
|
cd web
|
|
|
|
set +x
|
|
|
|
SOURCEHUT_PAGES_TOKEN=${OAUTH2_TOKEN} PRIVATE_SSH_KEY=~/.ssh/passwordless-auth-sshfs ./bin/deploy-gmi.sh
|
2023-02-19 16:01:50 +00:00
|
|
|
artifacts:
|
2023-10-06 16:49:51 +00:00
|
|
|
- web/tildeweb-prod-build.tar.gz
|
2023-10-27 18:23:13 +00:00
|
|
|
- web/gemini-site.tar.gz
|