mirror of
https://github.com/thomisus/Docker-DocumentServer.git
synced 2026-05-17 21:15:02 +00:00
add hooks
This commit is contained in:
parent
9c1975df7b
commit
2fbbccccec
3 changed files with 15 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue