Skip to content

Commit

Permalink
Merge pull request #68 from vicamo/for-myself/test-apt-get-update
Browse files Browse the repository at this point in the history
Load built rootfs tarball and test apt-get update
  • Loading branch information
vicamo authored Jun 13, 2024
2 parents 3d6a23a + 48172d4 commit 4f6aeb8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/per-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
output_dir="output/${serial}/${ARCH}/${CODENAME}"
args=()
[ -n "${ACTIVE}" ] || args+=('--eol')
[ -n "${ACTIVE}" ] && [ -z "${{ matrix.timestamp }}" ] || args+=('--eol')
[ "${USE_PORTS}" == 'false' ] || args+=('--ports')
args+=(--arch "${ARCH}")
Expand All @@ -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}" \
--tag "${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:
Expand Down

0 comments on commit 4f6aeb8

Please sign in to comment.