Skip to content

Commit

Permalink
ci: test more commands when binfmt installed in kernel
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Aug 27, 2021
1 parent b324592 commit 0765a23
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,39 @@ jobs:
with:
config: .github/buildkit.toml
-
name: Test
name: Test buildkit
if: matrix.target == 'buildkit'
uses: docker/bake-action@v1
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
targets: buildkit-test
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Load mainline for testing
if: matrix.target == 'mainline'
uses: docker/bake-action@v1
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
targets: mainline
load: true
set: |
*.cache-from=type=local,src=/tmp/.binfmt-cache/${{ matrix.target }}
mainline.tags=tonistiigi/binfmt:test
- name: Test mainline
if: matrix.target == 'mainline'
run: |
docker run --rm --privileged tonistiigi/binfmt:test --uninstall amd64,arm64,arm,ppc64le,s390x,riscv64
docker run --rm --privileged tonistiigi/binfmt:test --install all
docker run --rm arm64v8/alpine uname -a
docker run --rm arm32v7/alpine uname -a
docker run --rm ppc64le/alpine uname -a
docker run --rm s390x/alpine uname -a
docker run --rm tonistiigi/debian:riscv uname -a
docker run --rm -it --platform=linux/s390x s390x/ubuntu apt update
docker run --rm -it --platform=linux/ppc64le ppc64le/ubuntu apt update
docker run --rm -it --platform=linux/arm64 arm64v8/ubuntu apt update
-
name: Login to DockerHub
if: startsWith(github.ref, 'refs/heads/')
Expand Down

0 comments on commit 0765a23

Please sign in to comment.