message: Add pre built nydus v6 image
  This action also create pre-built nydus image, so lets convert it
  twice, one for pre-built image, the other for integrity check.
diff: @@ -42,33 +42,51 @@ jobs:
  sudo cp erofs-utils/fsck/fsck.erofs /usr/local/bin/
  - name: Convert RAFS v5 images
  run: |
  + sudo docker run -d --restart=always -p 5000:5000 registry
  for I in $(cat ${{ env.IMAGE_LIST_PATH }}); do
  echo "converting $I:latest to $I:nydus-nightly-v5"
  + # for pre-built images
  sudo DOCKER_CONFIG=$HOME/.docker nydusify convert \
  --source $I:latest \
  --target ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/$I:nydus-nightly-v5 \
  --build-cache ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/nydus-build-cache:$I-v5 \
  --fs-version 5
  + # use local registry for speed
  + sudo DOCKER_CONFIG=$HOME/.docker nydusify convert \
  + --source $I:latest \
  + --target localhost:5000/$I:nydus-nightly-v5 \
  + --fs-version 5
  +
  sudo rm -rf ./tmp
  - sudo DOCKER_CONFIG=$HOME/.docker nydusify check \
  - --target ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/$I:nydus-nightly-v5
  + echo "{\"host\": \"localhost:5000\", \"repo\": \"${I}\", \"scheme\": \"http\"}" > backend.json
  + cat backend.json
  + sudo DOCKER_CONFIG=$HOME/.docker nydusify check --source $I:latest \
  + --target localhost:5000/$I:nydus-nightly-v5 \
  + --backend-config-file ./backend.json --backend-type registry
  done
  - name: Convert and check RAFS v6 images
  run: |
  - sudo docker run -d --restart=always -p 5000:5000 registry
  for I in $(cat ${{ env.IMAGE_LIST_PATH }}); do
  echo "converting $I:latest to $I:nydus-nightly-v6"
  + # for pre-built images
  + sudo DOCKER_CONFIG=$HOME/.docker nydusify convert \
  + --source $I:latest \
  + --target ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/$I:nydus-nightly-v6 \
  + --build-cache ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/nydus-build-cache:$I-v6 \
  + --fs-version 6
  + # use local registry for speed
  sudo DOCKER_CONFIG=$HOME/.docker nydusify convert \
  --source $I:latest \
  --target localhost:5000/$I:nydus-nightly-v6 \
  - --build-cache localhost:5000/nydus-build-cache:$I-v6 \
  --fs-version 6
  +
  sudo rm -rf ./tmp
  echo "{\"host\": \"localhost:5000\", \"repo\": \"${I}\", \"scheme\": \"http\"}" > backend.json
  cat backend.json
  sudo DOCKER_CONFIG=$HOME/.docker nydusify check --source $I:latest \
  --target localhost:5000/$I:nydus-nightly-v6 \
  --backend-config-file ./backend.json --backend-type registry
  +
  sudo fsck.erofs -d9 output/nydus_bootstrap
  sudo rm -rf ./output
  done
  