aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-28 01:25:24 -0300
committerEuAndreh <eu@euandre.org>2019-05-28 01:25:24 -0300
commit8ff5265f779539ca53420f8db89927d7e03d5de3 (patch)
tree2c0bda39923f83906c7594e143240ac17c9ee94e
parentFix docker-compose config step (diff)
downloadserver-8ff5265f779539ca53420f8db89927d7e03d5de3.tar.gz
server-8ff5265f779539ca53420f8db89927d7e03d5de3.tar.xz
Suppress output of docker-compose config
This derivation sources =.envrc= and it's output can potentially leak secret environment variables from it.
-rw-r--r--default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index c110c7c..c6d6179 100644
--- a/default.nix
+++ b/default.nix
@@ -61,7 +61,7 @@ with pkgs.stdenv; rec {
buildInputs = baseAttrs.buildInputs ++ [ docker-compose ];
buildPhase = ''
source .envrc
- docker-compose config || {
+ docker-compose config &> /dev/null || {
echo "Invalid docker-compose.yml file."
exit 1
}