2020-11-04 00:22:19 +00:00
|
|
|
---
|
2022-06-02 00:30:47 +00:00
|
|
|
# we rsync binaries.tar.gz from the same server we deploy to.
|
|
|
|
# it contains these static-pie binaries:
|
2022-06-07 18:03:15 +00:00
|
|
|
# hugo, brotli, ect (like gzip/zopfli), sd, htmlq (like jq for html), and xmllint.
|
2020-11-04 00:22:19 +00:00
|
|
|
image: alpine/edge
|
|
|
|
packages:
|
2023-04-24 16:53:36 +00:00
|
|
|
- curl # for webring update script, pre-installed on builds.sr.ht images
|
2020-11-04 00:22:19 +00:00
|
|
|
- rsync
|
2023-04-24 16:53:36 +00:00
|
|
|
- git # for Hugo's gitInfo, pre-installed on builds.sr.ht images
|
2022-05-11 17:09:58 +00:00
|
|
|
- bmake
|
2020-11-04 00:22:19 +00:00
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~seirdy/seirdy.one
|
|
|
|
secrets:
|
2022-12-19 18:23:00 +00:00
|
|
|
- cc1eb90c-b07b-4c46-86d4-58fec41cf0e4 # ssh key
|
|
|
|
- b0bfa66e-3cf2-468f-9ea4-085819eccd18 # webmentiond key
|
2020-11-04 00:22:19 +00:00
|
|
|
triggers:
|
|
|
|
- action: email
|
|
|
|
condition: always
|
2020-11-05 23:49:44 +00:00
|
|
|
to: seirdy@seirdy.one
|
2020-11-04 00:22:19 +00:00
|
|
|
tasks:
|
2020-12-24 01:02:43 +00:00
|
|
|
- deps: |
|
2022-08-31 04:13:57 +00:00
|
|
|
printf "VerifyHostKeyDNS=yes\nKexAlgorithms=sntrup761x25519-sha512@openssh.com\n" >> ~/.ssh/config
|
2022-08-18 01:11:06 +00:00
|
|
|
# mirrored at https://seirdy.one/misc/binaries.tar.gz
|
2022-05-11 17:09:58 +00:00
|
|
|
rsync -Wv deploy@seirdy.one:/home/deploy/binaries.tar.gz .
|
2020-12-24 01:12:40 +00:00
|
|
|
mkdir -p ~/bin
|
2021-06-03 01:59:54 +00:00
|
|
|
tar xzf binaries.tar.gz -oC ~/bin
|
2020-12-24 05:47:58 +00:00
|
|
|
- build_deploy: |
|
|
|
|
cd seirdy.one
|
2020-12-24 01:12:40 +00:00
|
|
|
export PATH=~/bin:$PATH
|
2023-06-14 17:22:33 +00:00
|
|
|
# quick health + ip check
|
|
|
|
curl -6 --proto "=https" --proto-default https --http2 -siSL --tlsv1.3 --cert-status 'seirdy.one/ip'
|
|
|
|
echo
|
|
|
|
curl -4 --proto "=https" --proto-default https --http2 -sSL --tlsv1.3 --cert-status 'seirdy.one/ip'
|
|
|
|
echo
|
2022-05-11 17:09:58 +00:00
|
|
|
bmake deploy-prod deploy-onion
|