mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
4d7625227b
Update the Makefile to download the old version of the site, run static-webmentions, and collect the WebMentions to send in a json file saved as a build artifact. Don't send these automatically; just save them for now. Until I work out a solution to save sent WebMentions and avoid sending duplicates, I'll keep the sending of WebMentions manual. For some reason this caused webhint's axe/aria test to error out with a "Protocol error" so I disabled it. Axe tests are covered by Lighthouse anyway.
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
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
|
|
- make
|
|
- jq
|
|
- npm # for testing with lighthouse and webhint
|
|
- chromium # for testing with lighthouse and webhint
|
|
environment:
|
|
HINT_TELEMETRY: "off"
|
|
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
|
|
npm i -D --no-fund # no-fund reduces log verbosity
|
|
- build_deploy: |
|
|
cd seirdy.one
|
|
export PATH=~/bin:$PATH
|
|
# don't spend as much time compressing for staging.
|
|
make DOMAIN=staging.seirdy.one ZOPFLI_ITERATIONS=50 test-staging
|
|
tar czf ~/lighthouse-reports.tar.gz lighthouse-reports
|
|
make clean deploy
|
|
cp mentions.json ~/mentions.json
|
|
artifacts:
|
|
- lighthouse-reports.tar.gz
|
|
- mentions.json
|