deploy.sh: Wrapper for deployment scripts

The `deploy.sh` script ensures the execution environment is correct by
configuring the Ansible Vault secret, unlocking the `rbw` vault, and
requesting an SSH client certificate.  It then runs the specified
end-to-end deployment script from the `deploy` directory.
frigate-exporter
Dustin 2024-06-29 08:02:11 -05:00
parent 2ce211b5ea
commit dfc1a36ee5
1 changed files with 16 additions and 0 deletions

16
deploy.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
# vim: set ts=4 :
eval $(ssh-agent)
trap 'ssh-agent -k' INT TERM QUIT EXIT
set -a
. ./.env
SSHCA_SERVER=https://sshca.pyrocufflink.blue
set +a
virsh uri || exit
rbw unlock || exit
sshca-cli user login || exit
. deploy/"${1}".sh