Files

14 lines
696 B
Bash
Executable File

#!/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/)"