Automatic creation of review images
- Enable bors-ng for better merging - Re-enable mergify with a fixed up syntax, it will now only issue bors commands. - Pull request build images are now pushed to docker hub - Automatic backport rule - Fix build tag for branches with slash (/) - Only push when master and 1.6 target branchmaster
parent
782c686ea2
commit
faca9983a8
@ -0,0 +1,38 @@
|
||||
pull_request_rules:
|
||||
- name: 2 approved reviews
|
||||
conditions:
|
||||
- -title~=(WIP|wip)
|
||||
- -label~=^(status/wip|status/blocked)$
|
||||
- status-success=Travis CI - Pull Request
|
||||
- "#approved-reviews-by>=2"
|
||||
actions:
|
||||
comment:
|
||||
message: bors r+
|
||||
|
||||
- name: Trusted author and 1 approved review
|
||||
conditions:
|
||||
- author~=^(kaiyou|muhlemmer|mildred|HorayNarea|adi90x|hoellen|ofthesun9|Nebukadneza)$
|
||||
- -title~=(WIP|wip)
|
||||
- -label~=^(status/wip|status/blocked|review/need2)$
|
||||
- status-success=Travis CI - Pull Request
|
||||
- "#approved-reviews-by>=1"
|
||||
actions:
|
||||
comment:
|
||||
message: bors r+
|
||||
|
||||
- name: Backport to 1.6 branch
|
||||
conditions:
|
||||
- base=master
|
||||
- label=type/backport
|
||||
actions:
|
||||
backport:
|
||||
branches:
|
||||
- '1.6'
|
||||
|
||||
- name: remove outdated reviews
|
||||
conditions:
|
||||
- base~=^(master|1.6)$
|
||||
actions:
|
||||
dismiss_reviews:
|
||||
approved: True
|
||||
|
@ -0,0 +1,3 @@
|
||||
status = [
|
||||
"continuous-integration/travis-ci/push"
|
||||
]
|
@ -1,4 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker login -u $DOCKER_UN -p $DOCKER_PW
|
||||
docker-compose -f tests/build.yml push
|
||||
# Re-tag images for PR testing
|
||||
if [ $TRAVIS_PULL_REQUEST != false ]; then
|
||||
export MAILU_VERSION="${TRAVIS_BRANCH}-${TRAVIS_PULL_REQUEST}"
|
||||
export DOCKER_ORG="mailutest"
|
||||
docker-compose -f tests/build.yml build
|
||||
fi
|
||||
|
||||
|
||||
# Note that in case of a PR, the branch is the one we are merging into
|
||||
if [ -n $DOCKER_UN ] && [ -n $DOCKER_PW ] && \
|
||||
{ [ "$TRAVIS_BRANCH" = "master" ] || [ "$TRAVIS_BRANCH" = "1.6" ]; }; then
|
||||
docker login -u $DOCKER_UN -p $DOCKER_PW
|
||||
docker-compose -f tests/build.yml push
|
||||
fi
|
||||
|
Loading…
Reference in New Issue