Skip to content

Commit

Permalink
strip v prefix from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Apr 13, 2020
1 parent bdf7e76 commit 7991bf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,4 @@ deploy:
on:
repo: cenkalti/tcpproxy
tags: true
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t tcpproxy .
- docker tag tcpproxy $DOCKER_USERNAME/tcpproxy:$TRAVIS_TAG
- docker push $DOCKER_USERNAME/tcpproxy:$TRAVIS_TAG
script: bash docker_push.sh
5 changes: 5 additions & 0 deletions docker_push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e
docker build -t tcpproxy .
docker tag tcpproxy $DOCKER_USERNAME/tcpproxy:${TRAVIS_TAG:1}
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push $DOCKER_USERNAME/tcpproxy:${TRAVIS_TAG:1}

0 comments on commit 7991bf0

Please sign in to comment.