diff options
Diffstat (limited to 'scripts/make-amis')
-rwxr-xr-x | scripts/make-amis | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/make-amis b/scripts/make-amis new file mode 100755 index 0000000..e0a699e --- /dev/null +++ b/scripts/make-amis | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd build | ||
4 | |||
5 | # if no build(s) specified, do all profile's builds! | ||
6 | [ $# -gt 0 ] && BUILDS="$@" || BUILDS=$(ls profile) | ||
7 | |||
8 | for B in $BUILDS | ||
9 | do | ||
10 | BUILD="profile/$B" | ||
11 | ( packer build -var-file=$BUILD/vars.json packer.json; echo $? >$BUILD/exit ) | tee $BUILD/output | ||
12 | echo "=-> $(cat $BUILD/exit) <-=" | ||
13 | done | ||