Skip to content

chore(deps): Bump actions/checkout from 3 to 4 #329

chore(deps): Bump actions/checkout from 3 to 4

chore(deps): Bump actions/checkout from 3 to 4 #329

Workflow file for this run

name: Build PHP-FPM
on:
push:
branches:
- master
paths:
- "php-fpm/**"
- ".github/workflows/php-fpm.yml"
pull_request:
paths:
- "php-fpm/**"
- ".github/workflows/php-fpm.yml"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages (PHP ${{ matrix.php.name }})
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
fail-fast: false
matrix:
php:
- name: "7.4"
suffix: "74"
- name: "8.0"
suffix: "80"
- name: "8.1"
suffix: "81"
- name: "8.2"
suffix: "82"
- name: "8.3"
suffix: "83"
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
uses: docker/build-push-action@v4
with:
context: php-fpm
platforms: linux/amd64,linux/arm64
file: php-fpm/Dockerfile.${{ matrix.php.suffix }}
push: ${{ github.base_ref == null }}
pull: true
cache-from: type=gha,scope=php-fpm-${{ matrix.php.suffix }}
cache-to: type=gha,mode=max,scope=php-fpm-${{ matrix.php.suffix }}
tags: ghcr.io/automattic/vip-container-images/php-fpm-alt:${{ matrix.php.name }}, ghcr.io/automattic/vip-container-images/php-fpm:${{ matrix.php.name }}