Fix docker build for reusessl tag

This commit is contained in:
Amin Vakil 2020-06-18 18:14:23 +04:30
parent 11a150c1db
commit a6452a0950
No known key found for this signature in database
GPG key ID: 1EFC1864E9D9E56B

View file

@ -19,8 +19,8 @@ install:
--tag ${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT} .
- docker build
--no-cache
--tag ${TRAVIS_REPO_SLUG}:reusessl
-f Dockerfile_reusessl
--tag ${TRAVIS_REPO_SLUG}/${TRAVIS_COMMIT}:reusessl
-f Dockerfile_reusessl .
script:
- DOCKERCONTAINER=$(docker run -d -p 127.0.0.1:${CLIENT_PORT}:21 -e ADDRESS=ftp.example.com ${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT})
- sleep 5
@ -30,7 +30,7 @@ script:
- docker stop ${DOCKERCONTAINER} && docker rm -fv ${DOCKERCONTAINER}
after_success:
- docker tag ${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT} aminvakil/alpine-ftp-server-tls
- docker tag ${TRAVIS_REPO_SLUG}:reusessl aminvakil/alpine-ftp-server-tls:reusessl
- docker tag ${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT}:reusessl aminvakil/alpine-ftp-server-tls:reusessl
- echo "$DOCKER_PASSWORD" | docker login -u aminvakil --password-stdin
- docker push aminvakil/alpine-ftp-server-tls
- docker push aminvakil/alpine-ftp-server-tls:reusessl