mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-25 18:03:44 +00:00
98f0263354
Also did some fixes over at deploy-gmi script too Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
image: alpine/edge
|
|
environment:
|
|
FF_ENABLE_COMMIT_DATA: "true"
|
|
FF_GENERATE_SOCIAL_CARDS: "true"
|
|
#SKIP_VENV_SETUP: "true"
|
|
packages:
|
|
- openssh-client
|
|
- rsync
|
|
- 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/web
|
|
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
|
|
- setup: |
|
|
# https://www.jeffgeerling.com/blog/2023/how-solve-error-externally-managed-environment-when-installing-pip3
|
|
sudo rm /usr/lib/python3*/EXTERNALLY-MANAGED -rfv
|
|
|
|
# add pipenv for now
|
|
pip3 install pipenv --user
|
|
- build: |
|
|
cd web
|
|
|
|
# our build script handles both the install and build stuff itself
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
pipenv install --ignore-pipfile --deploy
|
|
pipenv run build-tilde-ctrlc
|
|
pipenv run build-tilde-psflt
|
|
pipenv run build-tilde-dimensions
|
|
- generate-archive: |
|
|
cd web
|
|
tar -C build -cvz . -f tildeweb-prod-build.tar.gz
|
|
- deploy: |
|
|
cd web
|
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
|
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
|
|
artifacts:
|
|
- web/tildeweb-prod-build.tar.gz
|