move onbuild hook to post_build

This commit is contained in:
Min RK
2018-04-26 11:26:43 +02:00
parent e9f7ccbd25
commit 8a18d0daab
2 changed files with 4 additions and 14 deletions

View File

@@ -1,14 +0,0 @@
#!/bin/bash
set -exuo pipefail
docker build -t $DOCKER_REPO:$DOCKER_TAG .
# build onbuild
docker build --build-arg BASE_IMAGE=$DOCKER_REPO:$DOCKER_TAG -t ${DOCKER_REPO}-onbuild:$DOCKER_TAG .
for V in master $stable; do
docker build --build-arg JUPYTERHUB_VERSION=$V -t $DOCKER_REPO:$V .
done
echo "tagging $IMAGE_NAME"
docker tag $DOCKER_REPO:$stable $IMAGE_NAME

4
hooks/post_build Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -exuo pipefail
docker build --build-arg BASE_IMAGE=$DOCKER_REPO:$DOCKER_TAG -t ${DOCKER_REPO}-onbuild:$DOCKER_TAG onbuild