Skip to content

Merge pull request #17481 from phalcon/5.0.x #122

Merge pull request #17481 from phalcon/5.0.x

Merge pull request #17481 from phalcon/5.0.x #122

Workflow file for this run

name: Build Dockerfiles
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
name: Build Dockerfile PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Login to Github Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.DOCKERHUB_LOGIN }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Build and push
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
push: true
file: resources/docker/develop/Dockerfile
tags: |
phalconphp/cphalcon:${{ github.ref_name }}-php${{ matrix.php }}
ghcr.io/phalcon/cphalcon:${{ github.ref_name }}-php${{ matrix.php }}
build-args: |
PHP_VERSION=${{ matrix.php }}
PHALCON_VERSION=${{ github.ref_name }}
cache-from: type=gha
cache-to: type=gha,mode=max