mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-22 16:33:39 +00:00
ci(builds.sr.ht): update build.yml for sync with tildes
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
parent
6101e45636
commit
edbc56743e
1 changed files with 7 additions and 3 deletions
|
@ -15,7 +15,7 @@ packages:
|
||||||
- libpng-dev
|
- libpng-dev
|
||||||
- zlib-dev
|
- zlib-dev
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~ajhalili2006/tildeweb
|
- https://git.sr.ht/~ajhalili2006/web
|
||||||
secrets:
|
secrets:
|
||||||
- b4ffc5fb-bc8c-4e89-b38a-48b56155a443
|
- b4ffc5fb-bc8c-4e89-b38a-48b56155a443
|
||||||
triggers:
|
triggers:
|
||||||
|
@ -28,6 +28,7 @@ tasks:
|
||||||
- repo-sync: |
|
- repo-sync: |
|
||||||
cd tildeweb
|
cd tildeweb
|
||||||
- build: |
|
- build: |
|
||||||
|
sudo rm /usr/lib/python3*/EXTERNALLY_MANAGED -rfv || true
|
||||||
cd tildeweb && pip3 install -r requirements.txt --user
|
cd tildeweb && pip3 install -r requirements.txt --user
|
||||||
export PATH="$PATH:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/.local/bin"
|
||||||
bash ./build.sh
|
bash ./build.sh
|
||||||
|
@ -35,6 +36,9 @@ tasks:
|
||||||
cd tildeweb
|
cd tildeweb
|
||||||
tar -C public -cvz . -f tildeweb-prod-build.tar.gz
|
tar -C public -cvz . -f tildeweb-prod-build.tar.gz
|
||||||
- deploy: |
|
- deploy: |
|
||||||
echo done
|
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
|
||||||
artifacts:
|
artifacts:
|
||||||
- tildeweb/tildeweb-prod-build.tar.gz
|
- tildeweb/tildeweb-prod-build.tar.gz
|
Loading…
Reference in a new issue