Last active
July 16, 2018 06:28
-
-
Save danihodovic/668ad0d66742fa43937ad6614d03ec59 to your computer and use it in GitHub Desktop.
Update danihodovic/samson-ansible
This file contains hidden or 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 -ev | |
if [ ! $# -eq 1 ]; then | |
echo "Usage $0 <samson-version>" | |
echo | |
echo "See Samson versions at https://hub.docker.com/r/zendesk/samson/tags/" | |
exit 1 | |
fi | |
samson_version=$1 | |
image=danihodovic/samson-ansible | |
docker pull "zendesk/samson:$samson_version" | |
docker build -t "$image:$samson_version" . | |
docker tag "$image:$samson_version" "$image:latest" | |
docker push "$image:$samson_version" | |
docker push "$image:latest" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment