Updated to latest xe-solutions
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
c1a0eb12e3
commit
4496a72e89
@ -110,7 +110,7 @@ while (( iter )); do
|
||||
if docker push ${REGISTRY_URL}/${CONTAINER}:latest-${TARGET_TAG}; then
|
||||
break
|
||||
fi
|
||||
fail "Unable to push ${CONTAINER}:latest-${TARGET_TAG}"
|
||||
echo "Unable to push ${CONTAINER}:latest-${TARGET_TAG}"
|
||||
iter=$((iter-1))
|
||||
if (( ! iter )); then
|
||||
fail "No more tries."
|
||||
|
@ -16,12 +16,24 @@ RELEASE_INFO=${RELEASE_INFO:-N/A}
|
||||
TAG=${TAG:-test-${OS_DISTRO}-${PACKAGE_STREAM}-${RELEASE_INFO}}
|
||||
}
|
||||
|
||||
docker tag ${CONTAINER}:${TAG} ${REGISTRY_URL}/${CONTAINER}:${TAG} \
|
||||
&& docker push ${REGISTRY_URL}/${CONTAINER}:${TAG} \
|
||||
|| {
|
||||
echo "Unable to tag and push image to ${REGISTRY_URL}."
|
||||
exit 1
|
||||
}
|
||||
if ! docker tag ${CONTAINER}:${TAG} ${REGISTRY_URL}/${CONTAINER}:${TAG}; then
|
||||
fail "Unable to tag .../${CONTAINER}:${TAG}"
|
||||
fi
|
||||
|
||||
iter=5
|
||||
while (( iter )); do
|
||||
echo "Pushing as .../${CONTAINER}:${TAG}"
|
||||
if docker push ${REGISTRY_URL}/${CONTAINER}:${TAG}; then
|
||||
break
|
||||
fi
|
||||
echo "Unable to tag and push image to ${REGISTRY_URL}."
|
||||
iter=$((iter-1))
|
||||
if (( ! iter )); then
|
||||
fail "No more tries."
|
||||
fi
|
||||
echo "Waiting 10s before trying again..."
|
||||
sleep 10
|
||||
done
|
||||
|
||||
[[ "${TAG}" =~ "test-*" ]] && {
|
||||
cat << EOM
|
||||
|
@ -67,8 +67,8 @@ CURL=$(which curl)
|
||||
|
||||
# The following constants are used so we can run trigger.sh
|
||||
# against a known build
|
||||
BUILD=${BUILD:-7517585}
|
||||
BRANCH=${BRANCH:-releases_19.4}
|
||||
BUILD=${BUILD:-N/A}
|
||||
BRANCH=${BRANCH:-untested}
|
||||
REF=${REF:-master}
|
||||
|
||||
PROJECT=${PROJECT:-${CONTAINER}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user