Skip to content

wip

wip #1

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request_target:
push:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
arch: ["i386", "amd64", "arm64/v8", "arm/v7"]
busybox: ["glibc", "musl", "uclibc"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,arm
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Build container
uses: docker/build-push-action@v6
with:
build-args: ARCH=${{ matrix.arch }}
context: .
file: ./Dockerfile
load: true
push: false
tags: test-${{ matrix.arch }}-${{ matrix.busybox }}
- name: Test
run: |
test "$(docker run --rm -it "test-${{ matrix.arch }}-${{ matrix.busybox }}" -c "php -r 'echo shell_exec(\"whoami\");'")" = "nonroot"