aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/push_deployment
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/scripts/push_deployment')
-rwxr-xr-xnixops/scripts/push_deployment14
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
3DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf"
4
5if [ -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;
8fi
9
10DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
11export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
12export NIXOPS_DEPLOYMENT="$DeploymentUuid"
13
14nixops export | pass insert -m $NIXOPS_CONFIG_PASS_SUBTREE_PATH/NixDeployment