Last active
August 15, 2017 12:22
-
-
Save JayH5/2d79a96ffdabf6ad0c6dff8c56a85fa9 to your computer and use it in GitHub Desktop.
Example Travis Docker deploy script
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
#!/usr/bin/env bash | |
set -e | |
tag_in="$1"; shift | |
[ $# -gt 0 ] | |
for tag_out in "$@"; do docker tag "$tag_in" "$tag_out"; done | |
for tag_out in "$@"; do docker push "$tag_out"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment