Skip to content

Commit

Permalink
Merge pull request #114 from giovannicuriel/changing-docker-tag
Browse files Browse the repository at this point in the history
ci: changing docker image name
  • Loading branch information
giovannicuriel committed Mar 29, 2019
2 parents 98ce46b + 75ca0b5 commit 8a224ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion travis/publish.sh
Expand Up @@ -5,7 +5,9 @@ if [ $TRAVIS_PULL_REQUEST == false ] ; then
version=$TRAVIS_BRANCH
fi

tag=${TRAVIS_REPO_SLUG}:$version
DOCKER_TAG=$(echo ${version} | sed 's/\(.*\)\/\(.*\)/\1_\2/')

tag=${TRAVIS_REPO_SLUG}:${DOCKER_TAG}

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker tag ${TRAVIS_REPO_SLUG} ${tag}
Expand Down

0 comments on commit 8a224ea

Please sign in to comment.