mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 15:32:56 +00:00
Docker Cloud build phase hooks
Must be located in the root of each docker build context i.e., every stack folder
This commit is contained in:
13
all-spark-notebook/hooks/post_push
Executable file
13
all-spark-notebook/hooks/post_push
Executable file
@@ -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
|
13
base-notebook/hooks/post_push
Executable file
13
base-notebook/hooks/post_push
Executable file
@@ -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
|
13
datascience-notebook/hooks/post_push
Executable file
13
datascience-notebook/hooks/post_push
Executable file
@@ -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
|
13
minimal-notebook/hooks/post_push
Executable file
13
minimal-notebook/hooks/post_push
Executable file
@@ -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
|
13
pyspark-notebook/hooks/post_push
Executable file
13
pyspark-notebook/hooks/post_push
Executable file
@@ -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
|
13
r-notebook/hooks/post_push
Executable file
13
r-notebook/hooks/post_push
Executable file
@@ -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
|
13
scipy-notebook/hooks/post_push
Executable file
13
scipy-notebook/hooks/post_push
Executable file
@@ -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
|
13
tensorflow-notebook/hooks/post_push
Executable file
13
tensorflow-notebook/hooks/post_push
Executable file
@@ -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
|
Reference in New Issue
Block a user