summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9b681b2..2aa151d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,11 @@ cosmos:
upgrade:
fab upgrade
+DB=global/overlay/etc/puppet/cosmos-db.yaml
+
db:
- @python ./fabfile/db.py > global/overlay/etc/puppet/cosmos-db.yaml
- @git add global/overlay/etc/puppet/cosmos-db.yaml && git commit -m "update db" global/overlay/etc/puppet/cosmos-db.yaml
+ @python ./fabfile/db.py > $(DB)
+ @git diff --exit-code $(DB) || ( git add $(DB) && git commit -m "update db" $(DB) )
tag: db
./bump-tag