add hooks
This commit is contained in:
parent
9c1975df7b
commit
2fbbccccec
5
hooks/build
Normal file
5
hooks/build
Normal 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
7
hooks/post_push
Normal 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
3
hooks/push
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker push $IMAGE_NAME
|
Loading…
Reference in a new issue