mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-14 09:42:09 +00:00
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
---
|
|
# we rsync binaries.tar.gz from the same server we deploy to.
|
|
# it contains these static-pie binaries:
|
|
# hugo, brotli, ect (like gzip/zopfli), sd, htmlq (like jq for html), and xmllint.
|
|
image: alpine/edge
|
|
packages:
|
|
- curl # for webring update script, pre-installed on builds.sr.ht images
|
|
- rsync
|
|
- git # for Hugo's gitInfo, pre-installed on builds.sr.ht images
|
|
- bmake
|
|
sources:
|
|
- https://git.sr.ht/~seirdy/seirdy.one
|
|
secrets:
|
|
- cc1eb90c-b07b-4c46-86d4-58fec41cf0e4 # ssh key
|
|
- b0bfa66e-3cf2-468f-9ea4-085819eccd18 # webmentiond key
|
|
triggers:
|
|
- action: email
|
|
condition: always
|
|
to: seirdy@seirdy.one
|
|
tasks:
|
|
- deps: |
|
|
printf "VerifyHostKeyDNS=yes\nKexAlgorithms=sntrup761x25519-sha512@openssh.com\n" >> ~/.ssh/config
|
|
# mirrored at https://seirdy.one/misc/binaries.tar.gz
|
|
rsync -Wv deploy@seirdy.one:/var/www/pb/binaries.tar.gz .
|
|
mkdir -p ~/bin
|
|
tar xzf binaries.tar.gz -oC ~/bin
|
|
- build_deploy: |
|
|
cd seirdy.one
|
|
export PATH=~/bin:$PATH
|
|
# quick health + ip check
|
|
sh scripts/connectivity-check.sh
|
|
bmake deploy-prod deploy-onion
|