-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pushes the built Docker image to Docker Hub as part of a Travis deploy step. This allows Docker users to access the image more easily. There are a few caveats with this implementation: 1. We're only building `master`. If this ends up being something we use, we should build tagged version images as well. 2. It pushes to `stripemock/stripe-mock` instead of `stripe/stripe-mock` because we're having a little trouble getting the collaboration privileges worked out on Docker Hub's Stripe organization right now. We should change it to `stripe/stripe-mock` when possible. Fixes #49.
- Loading branch information
Showing
2 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Pushes a built Docker image to Docker Hub. | ||
# | ||
# Cargo culted from the Travis documentation: | ||
# | ||
# https://docs.travis-ci.com/user/docker/ | ||
|
||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; | ||
docker push "$DOCKER_REPO" |