From f9c002de76b0bd43158ef6dd1d913c7b108bbf53 Mon Sep 17 00:00:00 2001 From: "tao.yang" Date: Tue, 26 Nov 2024 10:24:08 +0800 Subject: [PATCH] After changing the image type to docker, updating CI should synchronize the changes. Signed-off-by: tao.yang --- .github/workflows/auto-upgrade-ci.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-upgrade-ci.yaml b/.github/workflows/auto-upgrade-ci.yaml index 7a5902257..60aae93c5 100644 --- a/.github/workflows/auto-upgrade-ci.yaml +++ b/.github/workflows/auto-upgrade-ci.yaml @@ -223,8 +223,13 @@ jobs: for ITEM in $TAR_FILES ; do IMAGE_NAME=${ITEM%*.tar} echo ${IMAGE_NAME} - cat test/.download/${ITEM} | docker import - ${IMAGE_NAME}:${{ needs.call_build_old_ci_image.outputs.imageTag }} + docker load -i test/.download/${ITEM} + echo "list docker images" && docker images + ITEM_IMAGE_ID=$(docker images | grep ${IMAGE_NAME%*-race}| grep ${{ needs.call_build_old_ci_image.outputs.imageTag }} | awk '{print $3}') + docker tag ${ITEM_IMAGE_ID} ${IMAGE_NAME}:${{ needs.call_build_old_ci_image.outputs.imageTag }} done + echo "list all docker images" + docker images - name: Prepare id: prepare @@ -310,8 +315,14 @@ jobs: for ITEM in $TAR_FILES ; do IMAGE_NAME=${ITEM%*.tar} echo ${IMAGE_NAME} - cat test/.download/${ITEM} | docker import - ${IMAGE_NAME}:${{ needs.call_build_new_ci_image.outputs.imageTag }} + docker load -i test/.download/${ITEM} + echo "list docker images" && docker images + ITEM_IMAGE_ID=$(docker images | grep ${IMAGE_NAME%*-race}| grep ${{ needs.call_build_new_ci_image.outputs.imageTag }} | awk '{print $3}') + docker tag ${ITEM_IMAGE_ID} ${IMAGE_NAME}:${{ needs.call_build_new_ci_image.outputs.imageTag }} done + echo "list all docker images" + docker images + - name: Upgrade to version ${{ needs.get_ref.outputs.new_version }} id: upgrade