add hooks

This commit is contained in:
AlexandrKharitonov 2022-01-06 11:46:31 +03:00
parent 9c1975df7b
commit 2fbbccccec
3 changed files with 15 additions and 0 deletions

5
hooks/build Normal file
View file

@ -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

7
hooks/post_push Normal file
View file

@ -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

3
hooks/push Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
docker push $IMAGE_NAME