Updated action workflows
Build and push PHP 8 container images / Build php8-almalinux (map[composer_version:2.8.9 latest:true os:almalinux os_version:9.5 php_version:8.4]) (push) Successful in 2m37s Details

This commit is contained in:
Muhamad Aditya Prima 2025-05-20 16:30:04 +07:00
parent 54ef426c57
commit 0e0a416cb9
1 changed files with 11 additions and 25 deletions

View File

@ -7,7 +7,7 @@ on:
jobs:
build:
name: Build PHP 8 container images
name: Build php8-almalinux
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
@ -18,6 +18,7 @@ jobs:
os_version: "9.5"
php_version: "8.4"
composer_version: "2.8.9"
latest: 'true'
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -29,7 +30,8 @@ jobs:
password: ${{ secrets.QUAY_SECRET }}
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Build and push php ${{ matrix.flavors.php_version }}
- if: ${{ matrix.flavors.latest != 'true' }}
name: Build and push php ${{ matrix.flavors.php_version }}
uses: docker/build-push-action@v5
with:
push: true
@ -41,34 +43,18 @@ jobs:
COMPOSER_VERSION=${{ matrix.flavors.composer_version }}
tags: |
quay.io/teras/php:${{ matrix.flavors.php_version }}
build-latest:
name: Build PHP 8 container images
runs-on: ubuntu-latest
needs:
- build
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ vars.QUAY_USERNAME }}
password: ${{ secrets.QUAY_SECRET }}
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Build and push php8 latest
- if: ${{ matrix.flavors.latest == 'true' }}
name: Build and push php ${{ matrix.flavors.php_version }}
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 8/Dockerfile.almalinux
file: 8/Dockerfile.${{ matrix.flavors.os }}
build-args: |
OS_VERSION=9.5
PHP_VERSION=8.4
COMPOSER_VERSION=2.8.9
OS_VERSION=${{ matrix.flavors.os_version }}
PHP_VERSION=${{ matrix.flavors.php_version }}
COMPOSER_VERSION=${{ matrix.flavors.composer_version }}
tags: |
quay.io/teras/php:${{ matrix.flavors.php_version }}
quay.io/teras/php:8
quay.io/teras/php:latest