Skip to content

Commit

Permalink
Merge pull request #4316 from ty-dc/fix/upgrade-ci-images
Browse files Browse the repository at this point in the history
After changing the image type to docker, updating CI should synchronize the changes.
  • Loading branch information
weizhoublue authored Nov 27, 2024
2 parents 4acc850 + f9c002d commit 675a672
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/auto-upgrade-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 675a672

Please sign in to comment.