master
Marc Wäckerlin 7 years ago
parent de2d7abc50
commit 507783123f
  1. 4
      docker-deploy

@ -48,9 +48,9 @@ for f in $*; do
echo "ERROR: no file ${f}.yaml" 1>&2 echo "ERROR: no file ${f}.yaml" 1>&2
exit 1 exit 1
fi fi
echo "... deploying $f" echo "... deploying ${f##*/}"
for d in $(sed -n 's/^ *source: *//p' ${f}.yaml); do for d in $(sed -n 's/^ *source: *//p' ${f}.yaml); do
test -e $d || mkdir -p $d test -e $d || mkdir -p $d
done done
docker stack deploy --compose-file ${f}.yaml ${##*/f} docker stack deploy --compose-file ${f}.yaml ${f##*/}
done done

Loading…
Cancel
Save