From 217d2863709ebbe1ed766a360edb228e8899fc68 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Jun 2019 22:21:38 -0300 Subject: Output all generated files on ./generated/, refactor .envrc variables --- .envrc | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) mode change 120000 => 100644 .envrc (limited to '.envrc') diff --git a/.envrc b/.envrc deleted file mode 120000 index c488fc8..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -secrets/envrc.sh \ No newline at end of file diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..6c6861e --- /dev/null +++ b/.envrc @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +set -Eeuo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")" + +# +# Operational toggle +# +export DESTROY_VOLUME=1 + +# +# Variables defined by commands +# +VPS_COMMIT_SHA="$(git rev-parse HEAD)" +export VPS_COMMIT_SHA +SSH_SERVER_PRIVATE_KEY="$(cat ./secrets/ssh/vps-box-server)" +export SSH_SERVER_PRIVATE_KEY +SSH_SERVER_PUBLIC_KEY="$(cat ./secrets/ssh/vps-box-server.pub)" +export SSH_SERVER_PUBLIC_KEY +# Used for keeping bash variables for run-time substituion instead of execution time substitution. +# Taken from: +# https://stackoverflow.com/questions/24963705/is-there-an-escape-character-for-envsubst +export DOLLAR='$' + +# +# docker-compose +# +export VOLUME_HOME="/home/vps/volumes" + +# +# Nix +# +# Use the same $NIX_PATH as in the CI +# See also: +# https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/4 +export NIX_PATH=nixpkgs=channel:nixos-unstable + +source ./secrets/secret-envrc.sh \ No newline at end of file -- cgit v1.3