-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorchestrator
More file actions
executable file
·56 lines (45 loc) · 888 Bytes
/
orchestrator
File metadata and controls
executable file
·56 lines (45 loc) · 888 Bytes
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
# vim: ft=sh
declare help="
Orchestrator script for Debian's mutt-patched image.
Usage:
orchestrator test
orchestrator build
orchestrator push
orchestrator bundle
Options:
-h --help Show this screen.
--version Show versions.
"
declare version="
Version: 1.0.0.
Licensed under the MIT terms.
"
run_build() {
docker build -t resnullius/mutt .
}
run_tests() {
bats test.bats
}
run_push() {
docker push resnullius/mutt
}
version() {
echo "$version"
}
help() {
echo "$help"
}
main() {
set -eo pipefail; [[ "$TRACE" ]] && set -x
declare cmd="$1"
case "$cmd" in
test) shift; run_tests "$@";;
push) shift; run_push "$@";;
build) shift; run_build "$@";;
-h|--help) shift; help "$@";;
--version) shift; version;;
*) help "$@";;
esac
}
main "$@"