Skip to content

Commit

Permalink
Merge pull request #121 from pegnet/develop
Browse files Browse the repository at this point in the history
Use docker user for login
  • Loading branch information
Emyrk authored Feb 4, 2020
2 parents 1230623 + 66f4e50 commit 6662203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ matrix:

# Modifies LXRHASH bit size, set docker organisation for deployment
env:
- LXRBITSIZE=10 REPO=pegnetd DOCKERORG=pegnet
- LXRBITSIZE=10 REPO=pegnetd DOCKERORG=pegnet DOCKERUSER=emyrk

script: echo "Not running $travis_script_go on windows and osx"

Expand All @@ -31,7 +31,7 @@ before_deploy:
- xgo -ldflags="-X github.com/pegnet/pegnetd/config.CompiledInBuild=`git rev-parse HEAD` -X github.com/pegnet/pegnetd/config.CompiledInVersion=`git describe --tags`" --targets=windows/amd64,darwin/amd64,linux/amd64 .
# Build and push image to dockerhub
- docker build -t $DOCKERORG/$REPO:$TRAVIS_TAG .
- docker login -u $DOCKERORG -p $DOCKERHUBTOKEN
- docker login -u $DOCKERUSER -p $DOCKERHUBTOKEN
- docker push $DOCKERORG/$REPO:$TRAVIS_TAG

deploy:
Expand Down

0 comments on commit 6662203

Please sign in to comment.