mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-29 10:09:17 +02:00
refac
Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
This commit is contained in:
14
.github/workflows/docker.yaml
vendored
14
.github/workflows/docker.yaml
vendored
@@ -311,7 +311,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !cancelled() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }}
|
||||
needs: [merge]
|
||||
continue-on-error: true
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -403,5 +402,16 @@ jobs:
|
||||
[ -z "$TAG" ] && continue
|
||||
DEST="${DOCKERHUB_IMAGE}:${TAG}"
|
||||
echo " -> ${DEST}"
|
||||
docker buildx imagetools create -t "${DEST}" "${SOURCE}"
|
||||
for ATTEMPT in 1 2 3; do
|
||||
if docker buildx imagetools create -t "${DEST}" "${SOURCE}" && \
|
||||
docker buildx imagetools inspect "${DEST}"; then
|
||||
break
|
||||
fi
|
||||
if [ "${ATTEMPT}" = "3" ]; then
|
||||
echo "Failed to copy ${DEST} after ${ATTEMPT} attempts"
|
||||
exit 1
|
||||
fi
|
||||
echo "Copy attempt ${ATTEMPT} for ${DEST} failed, retrying in 15s..."
|
||||
sleep 15
|
||||
done
|
||||
done <<< "${{ steps.tags.outputs.tags }}"
|
||||
|
||||
Reference in New Issue
Block a user