9 lines
188 B
Bash
9 lines
188 B
Bash
|
#! /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
|