From 8aac7cda8815db77f117539aee9743e9be162cd3 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sun, 8 Dec 2024 18:11:56 +0100 Subject: [PATCH] mirror docker:dind images --- .github/workflows/images.yaml | 12 ++++++++++++ docker/kustomization.yaml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 6b2179a..0ef6f06 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -69,6 +69,18 @@ jobs: run: | TAG_BUILDKIT=${{ steps.imageBuildkitTag.outputs.result }} crane cp docker.io/moby/buildkit:$TAG_BUILDKIT ghcr.io/yolean/buildkit:$TAG_BUILDKIT + - + name: Get dockerd image tag + id: imageDockerdTag + uses: mikefarah/yq@v4.44.1 + with: + cmd: yq '.images[0].newTag | sub("(.*)@.*", "${1}")' docker/kustomization.yaml + - + name: Mirror dockerd image from hub + run: | + TAG_DOCKERD=${{ steps.imageDockerdTag.outputs.result }} + crane cp docker.io/moby/dockerd:$TAG_DOCKERD ghcr.io/yolean/dockerd:$TAG_DOCKERD + crane cp docker.io/moby/dockerd:$TAG_DOCKERD-rootless ghcr.io/yolean/dockerd:$TAG_DOCKERD-rootless - name: Get gitea image tag id: imageGiteaTag diff --git a/docker/kustomization.yaml b/docker/kustomization.yaml index cd85647..74f9fab 100644 --- a/docker/kustomization.yaml +++ b/docker/kustomization.yaml @@ -7,7 +7,7 @@ images: newTag: 27.4.0-rc.4-dind@sha256:fe786da99c6a9bc373f97f267f748f794ef4237558bb30ab2eedcb5112660244 - name: docker:dind-rootless newName: docker - newTag: 27.4.0-rc.4-dind-rootless@sha256:fbc42b5c40d5b381777728a79e3191e9add2296ebf762899c50f42f41192a360 + newTag: 27.4.0-rc.4-dind-rootless@sha256:5c293fdc092fde1bd8a8127908a31efacb504f97388d31b1cc6b921e765f2953 resources: - dockerd-service.yaml