forked from FromDoppler/doppler-jenkins-swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-test-stacks.sh
40 lines (34 loc) · 931 Bytes
/
deploy-test-stacks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# Stop script on NZEC
set -e
# Stop script if unbound variable found (use ${var:-} if intentional)
set -u
# Lines added to get the script running in the script path shell context
# reference: http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/
cd "$(dirname "$0")"
# To avoid issues with MINGW and Git Bash, see:
# https://github.com/docker/toolbox/issues/673
# https://gist.github.com/borekb/cb1536a3685ca6fc0ad9a028e6a959e3
export MSYS_NO_PATHCONV=1
export MSYS2_ARG_CONV_EXCL="*"
print_help () {
echo ""
echo "Usage: sh deploy-test-stacks.sh [OPTIONS]"
echo ""
echo "Update test instance stacks."
echo ""
echo "Options:"
echo " -h, --help"
echo
echo "Examples:"
echo " sh deploy-test-stacks.sh"
}
for i in "$@" ; do
case $i in
-h|--help)
print_help
exit 0
;;
esac
done
sh ./jenkins-stack/deploy-jenkins-stack.sh -e=test