chore: canonical site_url new.cqre.net, add deploy.sh (build + strip + rsync to helsinki)
This commit is contained in:
@@ -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/)"
|
||||
Reference in New Issue
Block a user