Use bors-ng to create and upload test images
- Reinstate Travis deploy phase - Better labeling of Mergify rules - Automatic `bors try` by Mergify - Explain bors in comment message - Skip push for staging branch - Re-update docs to current situationmaster
parent
faca9983a8
commit
33db705194
@ -1,16 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Re-tag images for PR testing
|
# Skip deploy for staging branch
|
||||||
if [ $TRAVIS_PULL_REQUEST != false ]; then
|
[ "$TRAVIS_BRANCH" = "staging" ] && exit 0
|
||||||
export MAILU_VERSION="${TRAVIS_BRANCH}-${TRAVIS_PULL_REQUEST}"
|
|
||||||
|
# Retag in case of `bors try`
|
||||||
|
if [ "$TRAVIS_BRANCH" = "testing" ]; then
|
||||||
export DOCKER_ORG="mailutest"
|
export DOCKER_ORG="mailutest"
|
||||||
|
# Commit message is like "Try #99".
|
||||||
|
# This sets the version tag to "pr-99"
|
||||||
|
export MAILU_VERSION="pr-${TRAVIS_COMMIT_MESSAGE//[!0-9]/}"
|
||||||
docker-compose -f tests/build.yml build
|
docker-compose -f tests/build.yml build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
docker login -u $DOCKER_UN -p $DOCKER_PW
|
||||||
# Note that in case of a PR, the branch is the one we are merging into
|
docker-compose -f tests/build.yml push
|
||||||
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