Skip to content

Commit

Permalink
ci: changing docker image name
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannicuriel committed Mar 21, 2019
1 parent 98ce46b commit 75ca0b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion travis/publish.sh
Original file line number Diff line number Diff line change
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 75ca0b5

Please sign in to comment.