Skip to content

Commit

Permalink
container_ci: fix matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Jul 24, 2024
1 parent f33b99d commit fef4d9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/container_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
arch: ["amd64", "arm64/v8", "arm/v7"]
platform: ["linux/amd64", "linux/arm64/v8", "linux/arm/v7"]
busybox: ["glibc", "musl", "uclibc"]
steps:
- name: Checkout
Expand All @@ -26,12 +26,12 @@ jobs:
- name: Build container
uses: docker/build-push-action@v6
with:
build-args: ARCH=${{ matrix.arch }}
build-args: PLATFORM=${{ matrix.platform }}
context: .
file: ./Dockerfile
load: true
push: false
tags: test-${{ matrix.arch }}-${{ matrix.busybox }}
tags: test-${{ matrix.platform }}-${{ matrix.busybox }}
- name: Test
run: |
test "$(docker run --rm -i "test-${{ matrix.arch }}-${{ matrix.busybox }}" -c "php -r 'echo shell_exec(\"whoami\");'")" = "nonroot"
test "$(docker run --rm -i "test-${{ matrix.platform }}-${{ matrix.busybox }}" -c "php -r 'echo shell_exec(\"whoami\");'")" = "nonroot"

0 comments on commit fef4d9d

Please sign in to comment.