diff --git a/.travis.yml b/.travis.yml index eb10e5f..5160ad2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,10 +27,7 @@ script: deploy: skip_cleanup: true provider: script - script: TAG_NAME="${TRAVIS_TAG:-latest}" && \ - docker tag $IMAGE_NAME $IMAGE_NAME_REMOTE:$TAG_NAME && \ - "docker login --password=$DOCKER_PASSWORD --username=$DOCKER_USERNAME" && \ - docker push $IMAGE_NAME_REMOTE:$TAG_NAME + script: bash docker_push on: repo: HEPData/hepdata-converter-docker all_branches: true diff --git a/docker_push b/docker_push new file mode 100644 index 0000000..f120c33 --- /dev/null +++ b/docker_push @@ -0,0 +1,5 @@ +#!/bin/bash +TAG_NAME="${TRAVIS_TAG:-latest}" +docker tag $IMAGE_NAME $IMAGE_NAME_REMOTE:$TAG_NAME +echo "$DOCKER_PASSWORD" | docker login --username=$DOCKER_USERNAME --password-stdin +docker push $IMAGE_NAME_REMOTE:$TAG_NAME \ No newline at end of file