stacks/melville/deploy.sh

9 lines
188 B
Bash
Raw Normal View History

2021-12-17 09:38:07 -07:00
#! /bin/sh
stack=$(basename $(pwd))
cat HOSTS | while read host; do
echo "=== $host"
HOSTNAME=$host docker -H ssh://$host stack deploy -c docker-compose.yaml --prune $stack
done