Skip to content

Instantly share code, notes, and snippets.

@jayunit100
Created September 13, 2017 17:57
Show Gist options
  • Select an option

  • Save jayunit100/131ffd7052e5f6fcf68c6d05779217fb to your computer and use it in GitHub Desktop.

Select an option

Save jayunit100/131ffd7052e5f6fcf68c6d05779217fb to your computer and use it in GitHub Desktop.
CONTAINERS=('jobrunner' 'zookeeper' 'postgres' 'webapp' 'jobrunner' 'cfssl' 'logstash' 'registration' 'documentation' 'solr' 'nginx');
VERSION="4.2.0-SNAPSHOT"
set -x
for i in "${CONTAINERS[@]}" ; do
TO_PUSH="blackducksoftware/rpacheco-hub-${i}:${VERSION}"
NEW_IMAGE="jayunit100/joel-${i}:${VERSION}"
docker pull $TO_PUSH
docker tag $TO_PUSH $NEW_IMAGE
docker push $NEW_IMAGE
done
# docker tag blackducksoftware/rpacheco-hub-jobrunner:4.2.0-SNAPSHOT jayunit100/hub-jobrunner-joel:4.2.0-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment