website/.build.yml
Andrei Jiroh Halili 8b77e1e70f Update scripts to hell and back
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
2023-07-15 16:24:57 +00:00

40 lines
No EOL
902 B
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
- build: |
cd tildeweb && pip3 install -r requirements.txt --user
export PATH="$PATH:$HOME/.local/bin"
bash ./build.sh
- generate-archive: |
cd tildeweb
tar -C public -cvz . -f tildeweb-prod-build.tar.gz
- deploy: |
echo done
artifacts:
- tildeweb/tildeweb-prod-build.tar.gz