Remove output devnulling (again).
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
eb135b099d
commit
b48a949dc3
10
mirror.sh
10
mirror.sh
@ -23,7 +23,7 @@ function mirror() {
|
||||
image_version=$(echo "${image}" | cut -d":" -f 2)
|
||||
|
||||
echo -n "Mirroring ${image}... "
|
||||
if ! docker pull "${image}" &>/dev/null; then
|
||||
if ! docker pull "${image}"; then
|
||||
echo "PULL FAILED"
|
||||
exit 1
|
||||
fi
|
||||
@ -32,21 +32,21 @@ function mirror() {
|
||||
image_hash=$(docker images -a | grep "^${image_name}" | grep "${image_version}" | awk {' print $3 '})
|
||||
echo -n "${image_hash} received, retag as '${DESTINATION_PROJECT}/${image}'... "
|
||||
|
||||
if ! docker tag "${image_hash}" "${DESTINATION_PROJECT}/${image}" &>/dev/null; then
|
||||
if ! docker tag "${image_hash}" "${DESTINATION_PROJECT}/${image}"; then
|
||||
echo "TAGGING FAILED"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -n "pushing... "
|
||||
if ! docker push "${DESTINATION_PROJECT}/${image}" &>/dev/null; then
|
||||
if ! docker push "${DESTINATION_PROJECT}/${image}"; then
|
||||
echo "FAILED"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "OK"
|
||||
|
||||
docker image rm "${image}" &>/dev/null
|
||||
docker image rm "${DESTINATION_PROJECT}/${image}" &>/dev/null
|
||||
docker image rm "${image}"
|
||||
docker image rm "${DESTINATION_PROJECT}/${image}"
|
||||
}
|
||||
|
||||
# Login to registry.
|
||||
|
Loading…
Reference in New Issue
Block a user