Skip to content

Commit 9bcb252

Browse files
author
Aaron O'Mullan
committed
Add stack push scripts
1 parent a817363 commit 9bcb252

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

stacks/push.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
4+
function strip() {
5+
local val=${1%/}
6+
echo $val
7+
}
8+
9+
for d in $(ls -d */); do
10+
./pushstack.sh $(strip $d)
11+
done;

stacks/pushstack.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
STACK=$1
4+
5+
if [ -z "${STACK}" ]; then
6+
echo "Must provide stack to push" >&2
7+
exit -1
8+
fi;
9+
10+
docker push "codebox/codebox.${STACK}"

0 commit comments

Comments
 (0)