Files
docker-php-with-imagick-multi/.github/workflows/docker-image.yml
renovate[bot] c99062154a chore(deps): pin dependencies (#13)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-09 20:46:47 +02:00

52 lines
1.4 KiB
YAML

---
# yamllint disable truthy
name: GitHub Docker Registry Build
on:
schedule:
- cron: "41 1 * * *"
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 }}
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]
arch: ['linux/amd64', 'linux/arm64']
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push (${{ matrix.php }} / ${{ matrix.arch }})
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6
with:
file: Dockerfile-${{ matrix.php }}
platforms: ${{ matrix.arch }}
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.php }}