Skip to content

Commit

Permalink
Try to fix push to DockerHub by extracting commands to a separate script
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeWatt committed Mar 3, 2020
1 parent c179d3b commit 189b4e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions docker_push
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 189b4e4

Please sign in to comment.