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"
|
2022-11-01 16:28:28 +00:00
|
|
|
packages:
|
|
|
|
- openssh-client
|
|
|
|
- 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
|
|
|
|
- repo-sync: |
|
|
|
|
cd tildeweb
|
2023-01-19 11:35:32 +00:00
|
|
|
- build: |
|
2023-10-06 16:43:50 +00:00
|
|
|
sudo rm /usr/lib/python3*/EXTERNALLY_MANAGED -rfv || true
|
2023-01-19 11:45:18 +00:00
|
|
|
cd tildeweb && pip3 install -r requirements.txt --user
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
2023-07-15 16:22:08 +00:00
|
|
|
bash ./build.sh
|
2023-02-19 16:01:50 +00:00
|
|
|
- generate-archive: |
|
|
|
|
cd tildeweb
|
2023-07-15 16:22:08 +00:00
|
|
|
tar -C public -cvz . -f tildeweb-prod-build.tar.gz
|
2023-03-23 17:53:16 +00:00
|
|
|
- deploy: |
|
2023-10-06 16:43:50 +00:00
|
|
|
cd tildeweb
|
|
|
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
|
|
|
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' public/ ajhalili2006@p.projectsegfau.lt:/home/ajhalili2006/public_html
|
|
|
|
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' public/ ajhalili2006@ctrl-c.club:/home/ajhalili2006/public_html
|
2023-02-19 16:01:50 +00:00
|
|
|
artifacts:
|
2023-10-06 16:43:50 +00:00
|
|
|
- tildeweb/tildeweb-prod-build.tar.gz
|