Deploy services independently by changed paths
This commit is contained in:
1 parent
1ba47e4d22
commit
a07b8c9306
1 file changed
+9
-8
@@ -15,6 +15,15 @@ shift 2 || true
|
|||||||
FROM_REVISION=""
|
FROM_REVISION=""
|
||||||
PENDING=0
|
PENDING=0
|
||||||
SERVICES=()
|
SERVICES=()
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
cat <<'EOF'
|
||||||
|
Usage: deploy-remote.sh <dankclaw|dankserver> <git-revision> [--pending] [service]...
|
||||||
|
|
||||||
|
The service list is explicit. An empty list is a successful no-op.
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
while [[ "$#" -gt 0 ]]; do
|
while [[ "$#" -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--from-revision)
|
--from-revision)
|
||||||
@@ -48,14 +57,6 @@ run_privileged() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
usage() {
|
|
||||||
cat <<'EOF'
|
|
||||||
Usage: deploy-remote.sh <dankclaw|dankserver> <git-revision> [--pending] [service]...
|
|
||||||
|
|
||||||
The service list is explicit. An empty list is a successful no-op.
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "$TARGET" != dankclaw && "$TARGET" != dankserver ]]; then
|
if [[ "$TARGET" != dankclaw && "$TARGET" != dankserver ]]; then
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 2
|
exit 2
|
||||||
|
|||||||
Reference in new issue
Block a user