Broke script temporary.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Stanislav Nikitin 2022-06-27 02:16:40 +05:00
parent 732b08b12a
commit 9b4504684b
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -32,13 +32,13 @@ 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_version}" &>/dev/null; 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_version}" &>/dev/null; then
echo "FAILED"
exit 1
fi