1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00
Commit graph

31 commits

Author SHA1 Message Date
Rohan Kumar
e9a2af4a2b
Fix connectivity check for ipv4-only builds 2023-06-15 11:47:57 -07:00
Rohan Kumar
10af13bd1d
Start CI with a TLS/HTTP check + show ip addr
The ip check helps me analyze my server logs afterwards.
2023-06-14 10:22:33 -07:00
Rohan Kumar
3df303dfcf
update build scripts
- new version of webhint has false positives
- new html-proofer has different flags
- add a comment
2023-04-24 09:54:00 -07:00
Rohan Kumar
8709bf9ec2
Overhaul webmention generation
Use a new branch of webmentiond that lets me pull in all webmentions for
all pages in a single JSON response

Before, Hugo would make one request to webmentiond per page to ask for
approved webmentions for that page. Sometimes, it makes two requests
because some pages used to have a different canonical location. In all,
it ended up making over 150 requests within a second or two. Webmentiond
can handle this for now, but this isn't sustainable: page count will
only increase with time. I wanted to have Hugo instead get all
webmentions for all pages in one cached request.

I recompiled webmentiond from
https://github.com/zerok/webmentiond/pull/65, which updates the API to
support admin access keys. The admin API allows pulling in all
webmentions for all pages, instead of pulling them in for one page at a
time.

Doing so requires getting a bearer token, so I had to manage a new CI
secret: the password for getting a token. I get the token in a shell
script (get-token.sh) and write it to a temporary file, then have Hugo
read the token from that file. The shell script gets the password using
either the CI secret (in CI) or using my password manager (on my
workstation).

TODO: support marginalia (mentions with fragments in their targets)
2022-12-19 11:07:57 -08:00
Rohan Kumar
ee24778538
Update for new seirdy.one ssh configs
- Check host key acc. to SSHFP DNS record
- Enforce correct cipher
2022-08-30 21:13:57 -07:00
Rohan Kumar
8d7b5c0baa
Internal plumbing fixes
- Allow long CC durations in webhint
- WH warns when load time is within a whole second of the target
  load-time, so bump it up a little.
- Add a comment to the build manifest
2022-08-17 18:11:06 -07:00
Rohan Kumar
76240b8f2e
CI: don't install xmllint anymore
It's in binaries.tar.gz now.
2022-06-07 11:03:15 -07:00
Rohan Kumar
c9291830d0
Automatically pull webring links during build 2022-06-07 09:39:32 -07:00
Rohan Kumar
c1f991efff
xhtmlize: switch back to using xmllint
Switch back to using xmllint, but now extract + replace the CSS to
address the escaping.
2022-06-01 22:11:40 -07:00
Rohan Kumar
425071eade
Auto-format markup in CI
Use xmlfmt with some extra post-processing since xmlfmt has a few
issues wrt extra newlines.
2022-06-01 17:37:14 -07:00
Rohan Kumar
3f7e32e70f
Build system: allow parallel builds
Make it possible to build the tilde, staging, production, and onion
sites in parallel. Lint the staging site before deploying it.

Also make these bmake-compatible so I can use bmake instead of gmake.
2022-05-11 10:09:58 -07:00
Rohan Kumar
8b019f8505
CI: drop unused dep "jq" 2021-12-13 15:39:13 -08:00
Rohan Kumar
2fefe939db
Fix: drop static-webmentions 2021-12-13 15:34:37 -08:00
Rohan Kumar
f4a07c96a8
CI: deploy onion site 2021-06-16 12:19:27 -07:00
Rohan Kumar
72b20bf6e0
Switch from Zopfli to Efficient Compression Tool
ECT is more efficient than Zopfli given the same amount of time. It uses
Zopfli under the hood.

- Switch from binaries.tar.br to binaries.tar.gz
- Bring in the statically-linked ect/brotli binaries from
  binaries.tar.gz
2021-06-02 20:01:40 -07:00
Rohan Kumar
0e6eebd6bf
Use own build of zopfli
"binaries.tar" now includes zopfli and zopflipng; no need to get those
with apk.
2021-05-21 20:52:50 -07:00
Rohan Kumar
efa589508f
Stop running lighthouse/webhint every commit
Go back to running them manually on my own. They're too slow and buggy
for CI.
2021-01-20 12:50:24 -08:00
Rohan Kumar
4d7625227b
IndieWeb: gather WebWentions with static-webmention
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.
2021-01-09 21:48:34 -08:00
Rohan Kumar
61cc09cbd9
CI: fetch a brotli-compressed tarball of binaries
Since we already have brotli installed in CI, we might as well use it.
2021-01-02 17:23:14 -08:00
Rohan Kumar
0c64c5867b
Use brotli_static with max brotli compression
Compress with brotli ahead of time in CI, just like we do with zopfli
for gzip_static

Update hintrc to check for brotli compression.

Update lighthouse config to throttle CPU some more since brotli
decompression can be heavier.
2020-12-30 23:51:14 -08:00
Rohan Kumar
1a89830880
Compress more when deploying to prod
Use 50 zopfli zopfli iterations when compressing for staging, but a full
1200 when compressing for prod.
2020-12-26 20:43:48 -08:00
Rohan Kumar
d8f6d1a913
CI: save lighthouse artifacts 2020-12-23 21:47:58 -08:00
Rohan Kumar
e989ff01c4
CI: don't install packages globally
Install bins into ~/bin instead and use local npm packages
2020-12-23 18:22:03 -08:00
Rohan Kumar
51a6d4edde
CI: test with lighthouse, webhint in staging 2020-12-23 17:04:28 -08:00
Rohan Kumar
758460f258
Add date last updated (gitinfo)
Add the date last updated to articles, if articles have been updated
since initial publication. Incldue a link to the article changelog.
2020-12-21 16:39:23 -08:00
rohan kumar
e521afe26f
CI: fix: missing dep + no chown/chgrp 2020-12-12 21:13:25 -08:00
rohan kumar
40ea94c33b
CI: use Makefile to lint, build, and deploy
Switch from the deploy.sh shell script to a more configurable Makefile.
2020-12-12 21:04:01 -08:00
rohan kumar
09d7d6c3fc
Try out gzip_static
I hope this works
2020-11-24 21:57:20 -08:00
rohan kumar
1309534838
CI: ignore gemini/ dir when deploying HTML 2020-11-05 15:49:44 -08:00
rohan kumar
6c4c58886a
CI: deploy website to multiple locations
Create a quick shell script that can deploy to localhost, my tilde
(staging), or seirdy.one.
2020-11-03 19:52:42 -08:00
rohan kumar
beb174c66b
Add build manifest
If this doesn't work I am going to do something regrettable to my
laptop.
2020-11-03 16:22:19 -08:00