mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-10 03:39:38 +00:00
ci(builds.sr.ht): fix directory issue during build
See https://builds.sr.ht/~ajhalili2006/job/1069863 for context Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
parent
1c3ec96822
commit
a57c035e8e
1 changed files with 4 additions and 4 deletions
|
@ -26,19 +26,19 @@ triggers:
|
||||||
tasks:
|
tasks:
|
||||||
# in case of triggered from hottub
|
# in case of triggered from hottub
|
||||||
- repo-sync: |
|
- repo-sync: |
|
||||||
cd tildeweb
|
cd web
|
||||||
- build: |
|
- build: |
|
||||||
sudo rm /usr/lib/python3*/EXTERNALLY_MANAGED -rfv || true
|
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
|
||||||
- generate-archive: |
|
- generate-archive: |
|
||||||
cd tildeweb
|
cd web
|
||||||
tar -C public -cvz . -f tildeweb-prod-build.tar.gz
|
tar -C public -cvz . -f tildeweb-prod-build.tar.gz
|
||||||
- deploy: |
|
- deploy: |
|
||||||
cd tildeweb
|
cd web
|
||||||
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
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@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
|
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
|
- web/tildeweb-prod-build.tar.gz
|
||||||
|
|
Loading…
Reference in a new issue