-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 966 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SHELL = /bin/sh
UNAME := $(shell uname -s)
SOPS_VERSION = v3.9.3
YQ_VERSION = v4.44.3
initialise: init
ag -- version || brew install the_silver_searcher
age --version || brew install age
pre-commit --version || brew install pre-commit
pre-commit install --install-hooks
pre-commit run -a
init:
ifeq ($(UNAME),Darwin)
wget --no-check-certificate https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.darwin
wget --no-check-certificate https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_darwin_amd64
sudo install -m 755 sops-${SOPS_VERSION}.darwin /usr/local/bin/sops
sops --version
sudo install -m 755 yq_darwin_amd64 /usr/local/bin/yq
rm -f sops-${SOPS_VERSION}.darwin yq_darwin_amd64
endif
decrypt-%:
./bin/decrypt-secrets.sh $*
encrypt-%:
./bin/encrypt-secrets.sh $*
clean-%:
rm local*/$*/*.yaml
clean:
rm local*/*/*.yaml
check-for-unencrypted-secrets:
./bin/check-for-unencrypted-secrets.sh