Fix docker tagging

Signed-off-by: Amin Vakil <info@aminvakil.com>
This commit is contained in:
Amin Vakil 2020-06-18 18:28:47 +04:30
parent 561b5ea248
commit 2c6cca21b5
No known key found for this signature in database
GPG key ID: 1EFC1864E9D9E56B

View file

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