Skip to content

feat: add php 7.4

feat: add php 7.4 #2

Workflow file for this run

# NOTE: This file was generated via generate.sh. Don't edit it directly
name: 'PHP 7.4'
on:
pull_request:
paths:
- 7.4/**
push:
paths:
- 7.4/**
defaults:
run:
shell: 'bash -Eeuo pipefail -x {0}'
jobs:
verify-templating:
name: Verify templating
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate
run: make all
- name: Check Git status
run: |
test -z "$(git status --short)"
docker:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
needs:
- verify-templating
strategy:
matrix:
target:
[
"7_4-cli-bullseye",
"7_4-fpm-bullseye",
"7_4-nginx-bullseye",
"7_4-cli-buster",
"7_4-fpm-buster",
"7_4-nginx-buster",
"7_4-cli-alpine3_21",
"7_4-fpm-alpine3_21",
"7_4-nginx-alpine3_21",
]
env:
DOCKER_HUB_PUSH: ${{ (secrets.DOCKER_HUB_USERNAME && secrets.DOCKER_HUB_TOKEN) && 'true' || 'false' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm,arm64
- name: Set up buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
if: ${{ env.DOCKER_HUB_PUSH == 'true' }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push to GitHub Container Registry
uses: docker/bake-action@v2
env:
REGISTRY: ghcr.io
REPO: ${{ github.repository_owner }}/php
with:
targets: ${{ matrix.target }}
set: |
*.platform=linux/amd64,linux/arm,linux/arm64
push: ${{ github.event_name == 'push' }}
- name: Build and push to DockerHub
uses: docker/bake-action@v2
with:
targets: ${{ matrix.target }}
set: |
*.platform=linux/amd64,linux/arm,linux/arm64
push: ${{ github.event_name == 'push' }}
if: ${{ env.DOCKER_HUB_PUSH == 'true' }}