Skip to content

Version 0.1.0-alpha1 #7

Version 0.1.0-alpha1

Version 0.1.0-alpha1 #7

Workflow file for this run

#
name: Build PHP 8.4
# Configures this workflow to run every time a release is created.
on:
release:
types:
- created
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
strategy:
matrix:
variant:
- platform: 'linux/amd64,linux/arm64'
image: 8.4-cli-alpine3.21
tags: |
ghcr.io/php-etl/php-grpc:8.4-cli
- platform: 'linux/amd64,linux/arm64'
image: 8.4-zts-alpine3.21
tags: |
ghcr.io/php-etl/php-grpc:8.4-zts
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push PHP 8.4
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
platforms: ${{ matrix.variant.platform }}
build-args: |
PHP_IMAGE=${{ matrix.variant.image }}
tags: ${{ matrix.variant.tags }}
build_xdebug:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
strategy:
matrix:
variant:
- platform: 'linux/amd64,linux/arm64'
image: 8.4-cli-alpine3.21
tags: |
ghcr.io/php-etl/php-grpc:8.4-cli-xdebug
- platform: 'linux/amd64,linux/arm64'
image: 8.4-zts-alpine3.21
tags: |
ghcr.io/php-etl/php-grpc:8.4-zts-xdebug
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push PHP 8.4 with Xdebug
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
platforms: ${{ matrix.variant.platform }}
build-args: |
PHP_IMAGE=${{ matrix.variant.image }}
XDEBUG_ENABLED=true
tags: ${{ matrix.variant.tags }}