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 | ||||
| 
 | ||||
| # Re-tag images for PR testing | ||||
| if [ $TRAVIS_PULL_REQUEST != false ]; then | ||||
|     export MAILU_VERSION="${TRAVIS_BRANCH}-${TRAVIS_PULL_REQUEST}" | ||||
| # Skip deploy for staging branch | ||||
| [ "$TRAVIS_BRANCH" = "staging" ] && exit 0 | ||||
| 
 | ||||
| # Retag in case of `bors try` | ||||
| if [ "$TRAVIS_BRANCH" = "testing" ]; then | ||||
|     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 | ||||
| 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 | ||||
| docker login -u $DOCKER_UN -p $DOCKER_PW | ||||
| docker-compose -f tests/build.yml push | ||||
|  | ||||
					Loading…
					
					
				
		Reference in New Issue
	
	 Tim Möhlmann
						Tim Möhlmann