Only update the database when needed

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.
This commit is contained in:
Johan Wassberg 2023-01-30 11:21:01 +01:00
parent 714506da1e
commit 57b302a299
Signed by untrusted user: jocar
GPG key ID: BE4EC2EEADF2C31B

View file

@ -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