diff --git a/docker/hooks/build b/docker/hooks/build old mode 100644 new mode 100755 diff --git a/docker/hooks/push b/docker/hooks/push new file mode 100755 index 0000000..8a278c7 --- /dev/null +++ b/docker/hooks/push @@ -0,0 +1,16 @@ +#!/bin/sh + +ver=${DOCKER_TAG##*-} +if [ "$ver" -a "$ver" = "$DOCKER_TAG" ]; then + ver="$DOCKER_TAG" +fi + +for layer in "" "huey"; do + if [ "$layer" ]; then + tag="${layer}-${ver}" + else + tag="$ver" + fi + docker push "$DOCKER_REPO":"$tag" +done +