git: use git-crypt for secret environments

This commit is contained in:
Bruno BELANYI 2021-01-19 14:07:52 +01:00
parent e88978adc2
commit cfa8df818b
2 changed files with 3 additions and 1 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
# Secret environment files
/*/*.env.secret filter=git-crypt diff=git-crypt

2
.gitignore vendored
View file

@ -1,6 +1,6 @@
/*/* /*/*
!*/*.env !*/*.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 # This is not necessary with the wildcard used in the first line, but it is clearer
/swag/* /swag/*