chore: canonical site_url new.cqre.net, add deploy.sh (build + strip + rsync to helsinki)

This commit is contained in:
Anikke
2026-09-19 21:40:14 +02:00
parent 1f7bae3f35
commit 8dfb49229f
4 changed files with 18 additions and 9 deletions
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# Build and deploy the antifragile consulting site to new.cqre.net
# (Helsinki: /services/docker/stacks/prod/static-sites/antifragile).
# Requires: uv (mkdocs via uvx), tbot ssh identity for root@helsinki.
set -e
cd "$(dirname "$0")"
uvx --with mkdocs-material --from mkdocs mkdocs build
# Strip internal CONFIRM(Tom) review comments from the published HTML.
find site -name "*.html" -exec perl -0777 -pi -e 's/<!--\s*CONFIRM.*?-->\s*//gs' {} +
rsync -az --delete -e "ssh -F $HOME/.hermes/tbot-output/identity/ssh_config" \
site/ root@helsinki:/services/docker/stacks/prod/static-sites/antifragile/site/
echo "Deployed to https://new.cqre.net/ (alias https://antifragile.cqre.net/)"