1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00
seirdy.one/.build.yml
Rohan Kumar 3f7e32e70f
Build system: allow parallel builds
Make it possible to build the tilde, staging, production, and onion
sites in parallel. Lint the staging site before deploying it.

Also make these bmake-compatible so I can use bmake instead of gmake.
2022-05-11 10:09:58 -07:00

24 lines
566 B
YAML

---
image: alpine/edge
packages:
- rsync
- git # for Hugo's gitInfo
- bmake
sources:
- https://git.sr.ht/~seirdy/seirdy.one
secrets:
- cc1eb90c-b07b-4c46-86d4-58fec41cf0e4
triggers:
- action: email
condition: always
to: seirdy@seirdy.one
tasks:
- deps: |
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
rsync -Wv deploy@seirdy.one:/home/deploy/binaries.tar.gz .
mkdir -p ~/bin
tar xzf binaries.tar.gz -oC ~/bin
- build_deploy: |
cd seirdy.one
export PATH=~/bin:$PATH
bmake deploy-prod deploy-onion