Secure certificates after generation

This commit is contained in:
Jonas Juselius
2019-02-23 15:34:28 +01:00
parent cce9aa825b
commit 66d29be22c
19 changed files with 2098 additions and 144 deletions

View File

@@ -5,5 +5,18 @@ if [ $# = 0 ]; then
exit 1
fi
nixops modify -d $1 $1.nix
if [ ! -f $1/deployment.nix ]; then
echo "error: $1 does not contain a deployment"
exit 1
fi
mkdir -p $1/gcroots
echo "--- Securing certifiates"
nix-build -o $1/gcroots/certs $1/build.nix
echo "--- Updating deployment"
nixops modify -d $1 $1/deployment.nix
echo "--- Deploying $1"
nixops deploy -d $*