From cfa8df818b438e875047ec979e7cf0637c795557 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 19 Jan 2021 14:07:52 +0100 Subject: [PATCH] git: use git-crypt for secret environments --- .gitattributes | 2 ++ .gitignore | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..12c7212 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Secret environment files +/*/*.env.secret filter=git-crypt diff=git-crypt diff --git a/.gitignore b/.gitignore index a982b04..d53f4b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /*/* !*/*.env -/*/*.env.secret # Just to document that they should definitely never be added +!*/*.env.secret # This is not necessary with the wildcard used in the first line, but it is clearer /swag/*