Skip to content

Commit

Permalink
Merge pull request #26 from bap14/fix-php-image-builds
Browse files Browse the repository at this point in the history
Fix php image builds
  • Loading branch information
navarr authored Apr 2, 2024
2 parents 8be8c75 + 43e40cb commit ae68648
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ on:
- php-fpm/**
- scripts/build.sh
jobs:
legacy-php:
name: Build Legacy PHP Images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Push Images
env:
PRE_AUTH: 1
IMAGE_NAME: ghcr.io/wardenenv/centos-php
VERSION_LIST: 7.4 8.0
VARIANT_LIST: cli cli-loaders fpm fpm-loaders
PUSH_FLAG: 1
INDEV_FLAG: ${{ github.ref == 'refs/heads/main' && '0' || '1' }}
run: bash php/scripts/build.sh
php:
name: Build PHP Images
runs-on: ubuntu-latest
Expand All @@ -29,7 +50,7 @@ jobs:
env:
PRE_AUTH: 1
IMAGE_NAME: ghcr.io/wardenenv/centos-php
VERSION_LIST: 7.4 8.0 8.1 8.2 8.3
VERSION_LIST: 8.1 8.2 8.3
VARIANT_LIST: cli cli-loaders fpm fpm-loaders
PUSH_FLAG: 1
INDEV_FLAG: ${{ github.ref == 'refs/heads/main' && '0' || '1' }}
Expand All @@ -38,7 +59,7 @@ jobs:
php-fpm:
name: Build Warden PHP-FPM Images ${{ matrix.php_version }}
runs-on: ubuntu-latest
needs: php
needs: [php, legacy-php]
strategy:
matrix:
php_version: ["7.4", "8.0", "8.1", "8.2", "8.3"]
Expand Down

0 comments on commit ae68648

Please sign in to comment.