From 57b302a299f14caead2ddeba285093aeab3cf760 Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Mon, 30 Jan 2023 11:21:01 +0100 Subject: [PATCH] Only update the database when needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this fix: ``` ➜ nunoc-ops git:(master) make db On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean make: *** [db] Error 1 ``` With this fix: ``` ➜ swamid-ops git:(master) ✗ make db make: Nothing to be done for `db'. ``` Will make it easier to only use `make tag` when to sign changes. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8936489..7ad799e 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ cosmos: upgrade: fab upgrade -db: +db: global/overlay/etc/puppet/cosmos-db.yaml + +global/overlay/etc/puppet/cosmos-db.yaml: global/overlay/etc/puppet/cosmos-rules.yaml: @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