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
18 changes: 0 additions & 18 deletions .github/docker-setup/action.yml

This file was deleted.

30 changes: 25 additions & 5 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,19 @@ concurrency:
jobs:
build-and-test:
runs-on: ubuntu-latest
# runs-on: arc-s2-runner
strategy:
fail-fast: false
matrix:
variant: [v1, v2]
php-version: ['8.4', '8.3', '8.2']
php-type: [fpm, cli]
php-type: [fpm, cli, apache]
php-base: [alpine, bookworm]
exclude:
- php-type: apache
php-base: alpine
# v2 uses trixie as the Debian base; bookworm retained for v1
- variant: v2
php-base: bookworm
include:
# v2 builds on trixie for Debian images
- variant: v2
php-version: '8.4'
php-type: fpm
Expand All @@ -56,6 +53,10 @@ jobs:
php-version: '8.4'
php-type: cli
php-base: trixie
- variant: v2
php-version: '8.4'
php-type: apache
php-base: trixie
- variant: v2
php-version: '8.3'
php-type: fpm
Expand All @@ -64,6 +65,10 @@ jobs:
php-version: '8.3'
php-type: cli
php-base: trixie
- variant: v2
php-version: '8.3'
php-type: apache
php-base: trixie
- variant: v2
php-version: '8.2'
php-type: fpm
Expand All @@ -72,6 +77,10 @@ jobs:
php-version: '8.2'
php-type: cli
php-base: trixie
- variant: v2
php-version: '8.2'
php-type: apache
php-base: trixie

name: ${{ matrix.variant }}-${{ matrix.php-version }}-${{ matrix.php-type }}-${{ matrix.php-base }}

Expand Down Expand Up @@ -269,6 +278,18 @@ jobs:
echo "✅ PHP-FPM version check passed"
echo "::endgroup::"

- name: Smoke tests - Apache specific
if: matrix.php-type == 'apache'
run: |
echo "::group::Testing Apache"
if ! docker run --rm test-${{ steps.vars.outputs.TAG }} apache2 -v 2>&1 | tee apache-version.txt; then
echo "::error::Failed to run apache2 -v"
cat apache-version.txt || true
exit 1
fi
echo "✅ Apache version check passed"
echo "::endgroup::"

- name: Summary
run: |
echo "::notice::✅ Build and tests passed for ${{ matrix.variant }} - ${{ steps.vars.outputs.TAG }}"
Expand All @@ -277,7 +298,6 @@ jobs:
needs: build-and-test
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule')
runs-on: ubuntu-latest
# runs-on: arc-s2-runner
strategy:
fail-fast: false
matrix:
Expand Down
112 changes: 0 additions & 112 deletions .github/workflows/docker-image.v1.yml

This file was deleted.

Loading
Loading