-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.build.yml
61 lines (59 loc) · 2.23 KB
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
image: alpine/edge
environment:
FF_ENABLE_COMMIT_DATA: "true"
FF_GENERATE_SOCIAL_CARDS: "true"
#SKIP_VENV_SETUP: "true"
oauth: "pages.sr.ht/SITES:RW pages.sr.ht/PAGES:RW pages.sr.ht/PROFILE"
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/[email protected]
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
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
- generate-archive: |
cd web
tar -C build -cvz . -f tildeweb-prod-build.tar.gz
- deploy-html: |
cd web
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' build/p.psf.lt/ [email protected]:/home/ajhalili2006/public_html/
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' build/ctrl-c.club/ [email protected]:/home/ajhalili2006/public_html/
rsync -rP -e 'ssh -i ~/.ssh/passwordless-auth-sshfs' build/dimension.sh/ [email protected]:/home/ajhalili2006/public_html/
- deploy-gemini: |
cd web
set +x
SOURCEHUT_PAGES_TOKEN=${OAUTH2_TOKEN} PRIVATE_SSH_KEY=~/.ssh/passwordless-auth-sshfs ./bin/deploy-gmi.sh
artifacts:
- web/tildeweb-prod-build.tar.gz
- web/gemini-site.tar.gz