Last active
December 15, 2016 23:41
-
-
Save v1k0d3n/86647a6c8f648c67c610c9295baa4752 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
set -ex | |
echo "" | |
echo "Preparing to push Kolla images to $DOCKER_REGISTRY:" | |
echo "KOLLA_NAMESPACE: $KOLLA_NAMESPACE" | |
echo "KOLLA_BASE: $KOLLA_BASE" | |
echo "KOLLA_TYPE: $KOLLA_TYPE" | |
echo "KOLLA_TAG: $KOLLA_TAG" | |
echo "==============================" | |
echo "" | |
echo "" | |
sleep 5 | |
echo "List of build images:" | |
docker images | |
sleep 1 | |
set -ex | |
docker images | grep "$KOLLA_NAMESPACE/$KOLLA_BASE-$KOLLA_TYPE-" | cut -d ' ' -f 1 | while read image ; do | |
# echo $image:$KOLLA_TAG | |
docker push $image:$KOLLA_TAG | |
done; |
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
INFO:kolla.image.build:========================= | |
INFO:kolla.image.build:Successfully built images | |
INFO:kolla.image.build:========================= | |
INFO:kolla.image.build:base | |
INFO:kolla.image.build:etcd | |
+++ cut -d ' ' -f 1 | |
+++ docker images | |
++++ KOLLA_NAMESPACE | |
/usr/local/bin/kolla-push.sh: line 9: KOLLA_NAMESPACE: command not found | |
++++ KOLLA_BASE | |
/usr/local/bin/kolla-push.sh: line 9: KOLLA_BASE: command not found | |
++++ KOLLA_TYPE | |
/usr/local/bin/kolla-push.sh: line 9: KOLLA_TYPE: command not found | |
+++ grep /-- |
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
INFO:kolla.image.build:========================= | |
INFO:kolla.image.build:Successfully built images | |
INFO:kolla.image.build:========================= | |
INFO:kolla.image.build:base | |
INFO:kolla.image.build:etcd | |
++ echo '' | |
++ echo 'Preparing to push Kolla images to quay.io:' | |
Preparing to push Kolla images to quay.io: | |
++ echo 'KOLLA_NAMESPACE: attcomdevaic' | |
KOLLA_NAMESPACE: attcomdevaic | |
++ echo 'KOLLA_BASE: ubuntu' | |
KOLLA_BASE: ubuntu | |
++ echo 'KOLLA_TYPE: source' | |
KOLLA_TYPE: source | |
++ echo 'KOLLA_TAG: 3.0.1.1612' | |
KOLLA_TAG: 3.0.1.1612 | |
++ echo ============================== | |
============================== | |
++ echo '' | |
++ sleep 5 | |
++ docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
kolla/ubuntu-source-etcd 3.0.1 1502f758cd06 11 seconds ago 352.1 MB | |
kolla/ubuntu-source-base 3.0.1 f14c16312cf8 About a minute ago 293.2 MB | |
ubuntu 16.04 104bec311bcd 5 hours ago 128.9 MB | |
++ sleep 1 | |
++ docker images | |
++ read image | |
++ grep attcomdevaic/ubuntu-source- | |
++ cut -d ' ' -f 1 | |
bash-3.2$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment