docker-mailcatcher

Dockerimage for mailcatcher SMTP service.
Log | Files | Refs | README

commit 5103d26bebc1c43567edf7c5b4776f69140d3099
parent 2d0a3d98ee3a348adaccf2e8770ea0c390ff8951
Author: beardyjay <jay@beardyjay.co.uk>
Date:   Sat,  7 Dec 2019 20:44:51 +0000

testing travis

Diffstat:
M.travis.yml | 18++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -1,17 +1,27 @@ --- services: docker +env: + - APP_NAME=mailcatcher + before_install: # Upgrade Docker. - sudo apt-get update - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce script: + + # Login to dockerhub + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + # Test building Dockerfile. - - docker build -t docker-mailcatcher . + - docker build -t $DOCKER_USERNAME/$APP_NAME . # Test running the container. - - docker run -d --name test-container docker-mailcatcher + - docker run --name test-container $DOCKER_USERNAME/$APP_NAME --version + + +after_success: + + - docker push $DOCKER_USERNAME/$APP_NAME - # Verify Mailcatcher is available in the container. - - docker exec --tty test-container env TERM=xterm mailcatcher --version