1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 22:12:10 +00:00
seirdy.one/.build.yml

32 lines
778 B
YAML
Raw Normal View History

---
image: alpine/edge
packages:
- rsync
- zopfli # for max compression w/ gzip_static
- brotli # for max compression w/ brotli_static, decompressing binaries
- git # for Hugo's gitInfo
2020-12-13 05:13:25 +00:00
- make
- jq
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 deploy@seirdy.one:/home/deploy/binaries.tar.br .
mkdir -p ~/bin
brotli -dc binaries.tar.br | tar x -oC ~/bin
cd seirdy.one
2020-12-24 05:47:58 +00:00
- build_deploy: |
cd seirdy.one
export PATH=~/bin:$PATH
make clean deploy
cp mentions.json ~/mentions.json
2020-12-24 05:47:58 +00:00
artifacts:
- mentions.json