diff --git a/hooks/post_push b/hooks/post_push new file mode 100755 index 00000000..c944ca68 --- /dev/null +++ b/hooks/post_push @@ -0,0 +1,4 @@ +#!/bin/bash +TIMESTAMP=$(date +%Y%m%d%H%M%S) +docker tag $IMAGE_NAME $DOCKER_REPO:$SOURCE_BRANCH-$SOURCE_COMMIT-$TIMESTAMP +docker push $DOCKER_REPO:$SOURCE_BRANCH-$SOURCE_COMMIT-$TIMESTAMP