ci: add perpulled images
Some checks failed
build-docker-images-for-latest-release-github-ver / build-and-push (push) Failing after 3m45s
Some checks failed
build-docker-images-for-latest-release-github-ver / build-and-push (push) Failing after 3m45s
This commit is contained in:
parent
d2c5264c79
commit
347a24a43a
@ -35,6 +35,30 @@ jobs:
|
|||||||
docker push "$TARGET_NAME"
|
docker push "$TARGET_NAME"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# 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
|
# Set up Docker Buildx and QEMU for multi-platform builds
|
||||||
- name: Set up Docker Buildx and QEMU
|
- name: Set up Docker Buildx and QEMU
|
||||||
uses: http://fly6516.synology.me:4000/docker/setup-buildx-action@v2
|
uses: http://fly6516.synology.me:4000/docker/setup-buildx-action@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user