Skip to content

Instantly share code, notes, and snippets.

@JayH5
Last active August 15, 2017 12:22
Show Gist options
  • Save JayH5/2d79a96ffdabf6ad0c6dff8c56a85fa9 to your computer and use it in GitHub Desktop.
Save JayH5/2d79a96ffdabf6ad0c6dff8c56a85fa9 to your computer and use it in GitHub Desktop.
Example Travis Docker deploy script
#!/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