aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/push_deployment
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/scripts/push_deployment')
-rwxr-xr-xnixops/scripts/push_deployment6
1 files changed, 2 insertions, 4 deletions
diff --git a/nixops/scripts/push_deployment b/nixops/scripts/push_deployment
index c8c34ee..067b665 100755
--- a/nixops/scripts/push_deployment
+++ b/nixops/scripts/push_deployment
@@ -1,16 +1,14 @@
1#!/bin/bash 1#!/bin/bash
2 2
3DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf" 3DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf"
4
5if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then 4if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then
6 echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path" 5 echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path"
7 exit 1; 6 exit 1;
8fi 7fi
9
10DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 8DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
11source $(dirname $(dirname $DIR))/nix_path_env
12nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops"
13export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops" 9export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
14export NIXOPS_DEPLOYMENT="$DeploymentUuid" 10export NIXOPS_DEPLOYMENT="$DeploymentUuid"
11source $(dirname $(dirname $DIR))/nix_path_env
12nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops"
15 13
16$nixops export | pass insert -m $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/Deployment 14$nixops export | pass insert -m $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/Deployment