Skip to content

Commit 9f4706a

Browse files
authored
Merge pull request #923 from oom-ai/chore/git-crypt
chore: git crypt
2 parents 5a7d8df + b3eb79d commit 9f4706a

File tree

8 files changed

+10
-2
lines changed

8 files changed

+10
-2
lines changed

.git-crypt/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Do not edit this file. To specify the files to encrypt, create your own
2+
# .gitattributes file in the directory where your files are.
3+
* !filter !diff
4+
*.gpg binary
Binary file not shown.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pvt.* filter=git-crypt diff=git-crypt

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ repos:
1010
rev: v4.0.1
1111
hooks:
1212
- id: trailing-whitespace
13+
exclude: \.pvt\.
1314
- id: end-of-file-fixer
15+
exclude: \.pvt\.
1416
- id: check-yaml
17+
exclude: \.pvt\.
1518
- id: check-added-large-files
1619
- id: mixed-line-ending
20+
exclude: \.pvt\.
1721
- repo: git://github.com/dnephin/pre-commit-golang
1822
rev: v0.4.0
1923
hooks:

.pvt.env

3.17 KB
Binary file not shown.

scripts/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/config_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata=$3
1818
filter_config() {
1919
local name=$1
2020
for source in ./config_source*.yaml; do
21-
cfg=$(sed -n "/$name:/, /^\$/p" "$source" | grep -v '^$')
21+
cfg=$(sed -n "/$name:/, /^\$/p" "$source" | grep -v '^$' | sed "s/{{PLAYDB}}/${PLAYDB:-playdb}/g")
2222
[[ -n $cfg ]] && echo "$cfg" && return
2323
done
2424

scripts/config_source.pvt.yaml

2.61 KB
Binary file not shown.

0 commit comments

Comments
 (0)