diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |