From e9782ade1db01ce30d04a6961d24594a3979bb61 Mon Sep 17 00:00:00 2001 From: gitlawr Date: Sun, 26 Nov 2023 12:40:04 +0800 Subject: [PATCH] chore: add import image scripts --- .github/workflows/ci.yml | 4 +++- .github/workflows/mirror_images.yml | 4 ++-- hack/mirror/{mirror_image_list.txt => mirror-images.txt} | 0 hack/mirror/{full_image_list.txt => walrus-images.txt} | 0 4 files changed, 5 insertions(+), 3 deletions(-) rename hack/mirror/{mirror_image_list.txt => mirror-images.txt} (100%) rename hack/mirror/{full_image_list.txt => walrus-images.txt} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff249bbe9..9fff4cb4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,4 +218,6 @@ jobs: tag_name: ${{ steps.metadata.outputs.version }} files: | .dist/package/${{ matrix.target }}/${{ matrix.task }}/build/cli/* - hack/mirror/full_image_list.txt + hack/mirror/walrus-images.txt + hack/mirror/walrus-load-images.sh + hack/mirror/walrus-save-images.sh diff --git a/.github/workflows/mirror_images.yml b/.github/workflows/mirror_images.yml index 883f89d10..8c6d80fb2 100644 --- a/.github/workflows/mirror_images.yml +++ b/.github/workflows/mirror_images.yml @@ -12,7 +12,7 @@ defaults: on: push: paths: - - "hack/mirror/mirror_image_list.txt" + - "hack/mirror/mirror-images.txt" workflow_dispatch: {} jobs: @@ -47,4 +47,4 @@ jobs: echo "Mirror image $source_image to $target_image" crane copy $source_image $target_image - done < ${{ github.workspace }}/hack/mirror/mirror_image_list.txt + done < ${{ github.workspace }}/hack/mirror/mirror-images.txt diff --git a/hack/mirror/mirror_image_list.txt b/hack/mirror/mirror-images.txt similarity index 100% rename from hack/mirror/mirror_image_list.txt rename to hack/mirror/mirror-images.txt diff --git a/hack/mirror/full_image_list.txt b/hack/mirror/walrus-images.txt similarity index 100% rename from hack/mirror/full_image_list.txt rename to hack/mirror/walrus-images.txt