diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d1fb40252b96..15225953329b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -346,6 +346,14 @@ jobs: uses: docker/setup-qemu-action@v3 with: image: '${{ env.DOCKER_BASE_IMAGE_REGISTRY }}/eks-distro-build-tooling/binfmt-misc:qemu-v6.1.0' + - name: Check if cached buildx image exists + id: cache-check + run: | + if ! docker pull ${{vars.AWS_ECR_REPO_BASE}}/moby/buildkit:buildx-stable-1 ; then + docker pull docker.io/moby/buildkit:buildx-stable-1 + docker tag docker.io/moby/buildkit:buildx-stable-1 ${{vars.AWS_ECR_REPO_BASE}}/moby/buildkit:buildx-stable-1 + docker push ${{vars.AWS_ECR_REPO_BASE}}/moby/buildkit:buildx-stable-1 + fi - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: @@ -555,6 +563,14 @@ jobs: uses: docker/setup-qemu-action@v3 with: image: '${{ env.DOCKER_BASE_IMAGE_REGISTRY }}/eks-distro-build-tooling/binfmt-misc:qemu-v6.1.0' + - name: Check if cached buildx image exists + id: cache-check + run: | + if ! docker pull ${{vars.AWS_ECR_REPO_BASE}}/moby/buildkit:buildx-stable-1 ; then + docker pull docker.io/moby/buildkit:buildx-stable-1 + docker tag docker.io/moby/buildkit:buildx-stable-1 ${{vars.AWS_ECR_REPO_BASE}}/moby/buildkit:buildx-stable-1 + docker push ${{vars.AWS_ECR_REPO_BASE}}/moby/buildkit:buildx-stable-1 + fi - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: