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
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:
parent
54ef426c57
commit
0e0a416cb9
|
@ -7,7 +7,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build PHP 8 container images
|
name: Build php8-almalinux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
@ -18,6 +18,7 @@ jobs:
|
||||||
os_version: "9.5"
|
os_version: "9.5"
|
||||||
php_version: "8.4"
|
php_version: "8.4"
|
||||||
composer_version: "2.8.9"
|
composer_version: "2.8.9"
|
||||||
|
latest: 'true'
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -29,7 +30,8 @@ jobs:
|
||||||
password: ${{ secrets.QUAY_SECRET }}
|
password: ${{ secrets.QUAY_SECRET }}
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
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
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
|
@ -41,34 +43,18 @@ jobs:
|
||||||
COMPOSER_VERSION=${{ matrix.flavors.composer_version }}
|
COMPOSER_VERSION=${{ matrix.flavors.composer_version }}
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/teras/php:${{ matrix.flavors.php_version }}
|
quay.io/teras/php:${{ matrix.flavors.php_version }}
|
||||||
build-latest:
|
- if: ${{ matrix.flavors.latest == 'true' }}
|
||||||
name: Build PHP 8 container images
|
name: Build and push php ${{ matrix.flavors.php_version }}
|
||||||
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
|
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: .
|
context: .
|
||||||
file: 8/Dockerfile.almalinux
|
file: 8/Dockerfile.${{ matrix.flavors.os }}
|
||||||
build-args: |
|
build-args: |
|
||||||
OS_VERSION=9.5
|
OS_VERSION=${{ matrix.flavors.os_version }}
|
||||||
PHP_VERSION=8.4
|
PHP_VERSION=${{ matrix.flavors.php_version }}
|
||||||
COMPOSER_VERSION=2.8.9
|
COMPOSER_VERSION=${{ matrix.flavors.composer_version }}
|
||||||
tags: |
|
tags: |
|
||||||
|
quay.io/teras/php:${{ matrix.flavors.php_version }}
|
||||||
quay.io/teras/php:8
|
quay.io/teras/php:8
|
||||||
quay.io/teras/php:latest
|
quay.io/teras/php:latest
|
||||||
|
|
Loading…
Reference in New Issue