diff --git a/hooks/build b/hooks/build new file mode 100644 index 0000000..ed98433 --- /dev/null +++ b/hooks/build @@ -0,0 +1,5 @@ +#!/bin/bash + +sed -i '/trap clean_exit SIGTERM/s/^/#/' run-document-server.sh + +docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME diff --git a/hooks/post_push b/hooks/post_push new file mode 100644 index 0000000..914a4d7 --- /dev/null +++ b/hooks/post_push @@ -0,0 +1,7 @@ +#!/bin/bash + +NEW_TAG=6.4.2 +NEW_IMAGE_NAME=$DOCKER_REPO:$NEW_TAG + +docker tag $IMAGE_NAME $NEW_IMAGE_NAME +docker push $NEW_IMAGE_NAME diff --git a/hooks/push b/hooks/push new file mode 100644 index 0000000..fa447ed --- /dev/null +++ b/hooks/push @@ -0,0 +1,3 @@ +#!/bin/bash + +docker push $IMAGE_NAME