2020-11-04 00:22:19 +00:00
|
|
|
---
|
|
|
|
image: alpine/edge
|
|
|
|
packages:
|
|
|
|
- rsync
|
2021-01-03 01:23:14 +00:00
|
|
|
- zopfli # for max compression w/ gzip_static
|
|
|
|
- brotli # for max compression w/ brotli_static, decompressing binaries
|
2020-12-24 01:02:43 +00:00
|
|
|
- git # for Hugo's gitInfo
|
2020-12-13 05:13:25 +00:00
|
|
|
- make
|
2020-12-24 05:47:58 +00:00
|
|
|
- npm # for testing with lighthouse and webhint
|
|
|
|
- chromium # for testing with lighthouse and webhint
|
|
|
|
environment:
|
2020-12-27 04:43:48 +00:00
|
|
|
HINT_TELEMETRY: "off"
|
2020-11-04 00:22:19 +00:00
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~seirdy/seirdy.one
|
|
|
|
secrets:
|
|
|
|
- cc1eb90c-b07b-4c46-86d4-58fec41cf0e4
|
|
|
|
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: |
|
|
|
|
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
|
2021-01-03 01:23:14 +00:00
|
|
|
rsync deploy@seirdy.one:/home/deploy/binaries.tar.br .
|
2020-12-24 01:12:40 +00:00
|
|
|
mkdir -p ~/bin
|
2021-01-03 01:23:14 +00:00
|
|
|
brotli -dc binaries.tar.br | tar x -oC ~/bin
|
2020-11-04 00:22:19 +00:00
|
|
|
cd seirdy.one
|
2021-01-03 01:23:14 +00:00
|
|
|
npm i -D --no-fund # no-fund reduces log verbosity
|
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
|
2020-12-27 04:43:48 +00:00
|
|
|
# don't spend as much time compressing for staging.
|
|
|
|
make DOMAIN=staging.seirdy.one ZOPFLI_ITERATIONS=50 test-staging
|
2020-12-24 05:47:58 +00:00
|
|
|
tar czf ~/lighthouse-reports.tar.gz lighthouse-reports
|
2020-12-24 01:02:43 +00:00
|
|
|
make clean deploy
|
2020-12-24 05:47:58 +00:00
|
|
|
artifacts:
|
|
|
|
- lighthouse-reports.tar.gz
|