diff --git a/all-spark-notebook/hooks/post_push b/all-spark-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/all-spark-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file diff --git a/base-notebook/hooks/post_push b/base-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/base-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file diff --git a/datascience-notebook/hooks/post_push b/datascience-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/datascience-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file diff --git a/minimal-notebook/hooks/post_push b/minimal-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/minimal-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file diff --git a/pyspark-notebook/hooks/post_push b/pyspark-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/pyspark-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file diff --git a/r-notebook/hooks/post_push b/r-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/r-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file diff --git a/scipy-notebook/hooks/post_push b/scipy-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/scipy-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file diff --git a/tensorflow-notebook/hooks/post_push b/tensorflow-notebook/hooks/post_push new file mode 100755 index 00000000..0b8d0930 --- /dev/null +++ b/tensorflow-notebook/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +# Tag the latest build with the short git sha. Push the tag in addition +# to the "latest" tag already pushed. +GIT_SHA_TAG=${SOURCE_COMMIT:0:12} +docker tag $IMAGE_NAME $DOCKER_REPO:$GIT_SHA_TAG +docker push $DOCKER_REPO:$GIT_SHA_TAG + +# Invoke all downstream build triggers. +for url in $(echo $NEXT_BUILD_TRIGGERS | sed "s/,/ /g") +do + curl -X POST $url +done \ No newline at end of file