diff --git a/.github/workflows/per-suite.yml b/.github/workflows/per-suite.yml index 356fbefa7..b58f7b9c1 100644 --- a/.github/workflows/per-suite.yml +++ b/.github/workflows/per-suite.yml @@ -139,6 +139,16 @@ jobs: echo "output_dir=debuerreotype/${output_dir}" | tee -a "${GITHUB_OUTPUT}" + - name: Load and test image + if: ${{ steps.debuerreotype.outcome == 'success' }} + run: | + tag="${REPOSITORY}:${CODENAME}-${ARCH}" + printf "FROM scratch\nADD rootfs.tar.xz /\nCMD [\"/bin/bash\"]" | \ + docker buildx build --load --platform "${PLATFORM}" \ + --tags "${tag}" \ + --file - "${{ steps.debuerreotype.outputs.output_dir}}" + docker run --rm "${tag}" apt-get update + - uses: actions/upload-artifact@v4 if: ${{ steps.debuerreotype.outcome == 'success' }} with: