Files
docker-php-with-imagick-multi/.github/workflows/docker-image.yml
Ismo Vuorinen eec02d4fa6 PHP 8.4 (#14)
* PHP 8.4

* feat: pr-lint, updates, php84 build

* chore(lint): fix lint errors, add .editorconfig

* chore(ci): testing kics config

* feat: refactor structure, add configs, lint.sh
2025-05-13 21:26:52 +03:00

54 lines
1.5 KiB
YAML

---
# yamllint disable truthy
name: GitHub Docker Registry Build
on:
schedule:
- cron: "0 2 * * 1" # At 2:00 on Monday.
push:
branches: ["main"]
workflow_dispatch:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
permissions: read-all
jobs:
BuildAndRelease:
runs-on: ubuntu-latest
continue-on-error: true
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
php: [php74, php80, php81, php82, php83, php84]
arch: ["linux/amd64", "linux/arm64"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- name: Log in to the Container registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push (${{ matrix.php }} / ${{ matrix.arch }})
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
with:
file: ${{ matrix.php }}/Dockerfile
platforms: ${{ matrix.arch }}
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.php }}