Rollback changes and remove curl mirroring.
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
9b4504684b
commit
eb135b099d
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
echo "curlimages/curl:7.79.1"
|
|
@ -32,13 +32,13 @@ function mirror() {
|
|||||||
image_hash=$(docker images -a | grep "^${image_name}" | grep "${image_version}" | awk {' print $3 '})
|
image_hash=$(docker images -a | grep "^${image_name}" | grep "${image_version}" | awk {' print $3 '})
|
||||||
echo -n "${image_hash} received, retag as '${DESTINATION_PROJECT}/${image}'... "
|
echo -n "${image_hash} received, retag as '${DESTINATION_PROJECT}/${image}'... "
|
||||||
|
|
||||||
if ! docker tag "${image_hash}" "${DESTINATION_PROJECT}:${image_version}" &>/dev/null; then
|
if ! docker tag "${image_hash}" "${DESTINATION_PROJECT}/${image}" &>/dev/null; then
|
||||||
echo "TAGGING FAILED"
|
echo "TAGGING FAILED"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "pushing... "
|
echo -n "pushing... "
|
||||||
if ! docker push "${DESTINATION_PROJECT}:${image_version}" &>/dev/null; then
|
if ! docker push "${DESTINATION_PROJECT}/${image}" &>/dev/null; then
|
||||||
echo "FAILED"
|
echo "FAILED"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user