diff --git a/.gitea/workflows/Multi-main.yaml b/.gitea/workflows/Multi-main.yaml index ad1daf6..b01e7fb 100644 --- a/.gitea/workflows/Multi-main.yaml +++ b/.gitea/workflows/Multi-main.yaml @@ -35,7 +35,31 @@ jobs: docker push "$TARGET_NAME" done - # Set up Docker Buildx and QEMU for multi-platform builds + # Pre-pull QEMU and Buildx images + - name: Pre-pull QEMU and Buildx Images + run: | + # Define the images to pull + QEMU_IMAGE="dockerp.com/multiarch/qemu-user-static:latest" + BUILDX_IMAGE="dockerp.com/buildkit/buildx-stable-1:latest" + + # Check and pull multiarch/qemu-user-static if not exists + if ! docker image inspect "$QEMU_IMAGE" > /dev/null 2>&1; then + echo "Pulling $QEMU_IMAGE..." + docker pull "$QEMU_IMAGE" + else + echo "$QEMU_IMAGE already exists locally." + fi + + # Check and pull buildkit/buildx-stable-1 if not exists + if ! docker image inspect "$BUILDX_IMAGE" > /dev/null 2>&1; then + echo "Pulling $BUILDX_IMAGE..." + docker pull "$BUILDX_IMAGE" + else + echo "$BUILDX_IMAGE already exists locally." + fi + + + # Set up Docker Buildx and QEMU for multi-platform builds - name: Set up Docker Buildx and QEMU uses: http://fly6516.synology.me:4000/docker/setup-buildx-action@v2 - name: Enable QEMU for multi-platform support