fix: only check dc when changed
This commit is contained in:
parent
2a063efcf3
commit
7c455db717
2 changed files with 10 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
# development
|
||||
servers/ryuk
|
||||
# tempfiles
|
||||
.neb/
|
|
@ -3,6 +3,13 @@
|
|||
set -e
|
||||
|
||||
for s in servers/*; do
|
||||
sum="$(cat $s/docker-compose.d/*.yml | sha1sum)"
|
||||
if [ -f .neb/$s/dc-sum.txt ]; then
|
||||
[ "$(cat .neb/$s/dc-sum.txt)" = "$sum" ] && continue
|
||||
else
|
||||
mkdir -p .neb/$s
|
||||
fi
|
||||
echo "checking $s..."
|
||||
HOSTNAME=$(echo $s | sed 's/servers\///') bash tools/server-docker-compose.sh config -q
|
||||
echo "$sum" > .neb/$s/dc-sum.txt
|
||||
done
|
Loading…
Reference in a new issue