Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/scripts/matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ for arch in "${!PLATFORMS[@]}"; do

jq -n -c \
--arg platforms "${PLATFORMS[$arch]}" \
--arg test_platform "${PLATFORMS[$arch]%%,*}" \
--arg raspios_url "$raspios_url" \
--arg raspios_sha256 "$raspios_sha256" \
--arg tags "$tags" \
'{platforms: $platforms, raspios_url: $raspios_url, raspios_sha256: $raspios_sha256, tags: $tags}'
--arg test_tag "${tags%%,*}" \
'{platforms: $platforms, test_platform: $test_platform, raspios_url: $raspios_url, raspios_sha256: $raspios_sha256, tags: $tags, test_tag: $test_tag}'
done
done | jq -sc '{include: .}'
11 changes: 11 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ jobs:
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build test image
uses: docker/build-push-action@v7
with:
load: true
tags: ${{ matrix.test_tag }}
platforms: ${{ matrix.test_platform }}
build-args: |
RASPIOS_URL=${{ matrix.raspios_url }}
RASPIOS_SHA256=${{ matrix.raspios_sha256 }}
- name: Test
run: docker run --rm --platform ${{ matrix.test_platform }} ${{ matrix.test_tag }} grep -qiE "raspbian|debian" /etc/os-release
- name: Build and push
uses: docker/build-push-action@v7
with:
Expand Down
Loading