ci: add perpulled images
Some checks failed
build-docker-images-for-latest-release-github-ver / build-and-push (push) Failing after 3m45s

This commit is contained in:
fly6516 2025-01-01 07:18:43 +08:00
parent d2c5264c79
commit 347a24a43a

View File

@ -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