Repository navigation
Unify building images for v1.7.x and v1.6.x #169
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & Test | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "development/**" | |
| - .github/workflows/*-development.yml | |
| - "nightly/**" | |
| - "examples/**" | |
| - "README.md" | |
| jobs: | |
| build-and-testvariants: | |
| name: Build image variants and run tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 10 | |
| matrix: | |
| variant: ['apache', 'fpm', 'fpm-alpine'] | |
| version: ['1.7.0', '1.6.15'] | |
| target: ['root', 'nonroot'] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Docker | |
| # This step is required to enable the containerd image store, which is required by the cache type=gha | |
| uses: docker/setup-docker-action@efe9e3891a4f7307e689f2100b33a155b900a608 # v4.5.0 | |
| with: | |
| daemon-config: | | |
| { | |
| "debug": true, | |
| "features": { | |
| "containerd-snapshotter": true | |
| } | |
| } | |
| - name: Build and test "${{ matrix.version }}" "${{ matrix.variant }} "${{ matrix.target }}" | |
| run: | | |
| ./build-image.sh --variant "${{ matrix.variant }}" --version "${{ matrix.version }}" --target "${{ matrix.target }}" --run-tests |