summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2014-03-12 10:55:01 +0100
committerLeif Johansson <leifj@sunet.se>2014-03-12 10:55:01 +0100
commit43e6693322d7253b9212f13a0d77df3ae2fcedda (patch)
tree9a2c1becf127e91ee2e9c9919482ae75b6e26722
parent7f8a308beae12dd61c1423a7fd24511d09e31df8 (diff)
-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