diff options
Diffstat (limited to 'nixops/scripts/push_deployment')
-rwxr-xr-x | nixops/scripts/push_deployment | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixops/scripts/push_deployment b/nixops/scripts/push_deployment new file mode 100755 index 0000000..07a804e --- /dev/null +++ b/nixops/scripts/push_deployment | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf" | ||
4 | |||
5 | if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then | ||
6 | echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path" | ||
7 | exit 1; | ||
8 | fi | ||
9 | |||
10 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
11 | export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops" | ||
12 | export NIXOPS_DEPLOYMENT="$DeploymentUuid" | ||
13 | |||
14 | nixops export | pass insert -m $NIXOPS_CONFIG_PASS_SUBTREE_PATH/NixDeployment | ||