Skip to content

Commit

Permalink
have Travis CI push to Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
mdempsky committed Dec 18, 2019
1 parent 8d2765d commit f384779
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Expand Up @@ -28,4 +28,10 @@ before_script:
script:
- ./hooks/pre-commit
- go test github.com/dxe/adb/...
- docker build -t adb .
- docker build -t mdempsky/adb .

deploy:
provider: script
script: bash push-to-docker-hub.sh
on:
branch: master
3 changes: 3 additions & 0 deletions push-to-docker-hub.sh
@@ -0,0 +1,3 @@
#!/bin/sh
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push mdempsky/adb

0 comments on commit f384779

Please sign in to comment.