Skip to content

Upgrade XDebug PHP extension version #260

Upgrade XDebug PHP extension version

Upgrade XDebug PHP extension version #260

Workflow file for this run

name: Docker Build
on:
push:
branches:
- '8.4'
pull_request:
jobs:
build-docker-images:
strategy:
matrix:
image-variant: [fpm-prd,apache-prd,nginx-prd,cli-prd,fpm-dev,apache-dev,nginx-dev,cli-dev]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Dockerfile
run: |
make Dockerfile
- name: Setup Bats and bats libs
id: setup-bats
uses: bats-core/bats-action@3.0.0
with:
bats-install: true
bats-version: 1.10.0
support-install: false
assert-install: false
detik-install: false
file-install: false
- name: Fill GitHub Environment Variables
uses: FranzDiebold/github-env-vars-action@v2
- name: Fill PHP Version Environment Variable
uses: c-py/action-dotenv-to-setenv@v5
with:
env-file: .build.env
- name: Prepare Workflow Environment
id: prep
run: |
echo "docker-image-name=${DOCKER_IMAGE_NAME}" >> $GITHUB_OUTPUT
echo "build-date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
- name: Fill "${{ steps.prep.outputs.docker-image-name }}" Docker Image metadata
id: meta
uses: docker/metadata-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: "${{ steps.prep.outputs.docker-image-name }}"
tags: |
type=raw,value=rc-${{ matrix.image-variant }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build "${{ steps.prep.outputs.docker-image-name }}" Docker Image
id: build
uses: docker/build-push-action@v6
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: Dockerfile
target: ${{ matrix.image-variant }}
build-args: |
VERSION_ARG=${{ env.PHP_VERSION }}
RELEASE_ARG=${{ env.CI_RUN_ID }}
VCS_REF_ARG=${{ env.CI_SHA }}
BUILD_DATE_ARG=${{ steps.prep.outputs.build-date }}
NODE_VERSION_ARG=${{ env.NODE_VERSION }}
COMPOSER_VERSION_ARG=${{ env.COMPOSER_VERSION }}
AWS_CLI_VERSION_ARG=${{ env.AWS_CLI_VERSION }}
PHP_EXT_REDIS_VERSION_ARG=${{ env.PHP_EXT_REDIS_VERSION }}
PHP_EXT_APCU_VERSION_ARG=${{ env.PHP_EXT_APCU_VERSION }}
PHP_EXT_XDEBUG_VERSION_ARG=${{ env.PHP_EXT_XDEBUG_VERSION }}
push: false
load: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=docker,dest=/tmp/image.tar
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Load Docker Image
run: |
docker load --input /tmp/image.tar
- name: Check Docker Image
run: |
docker image inspect ${{ steps.prep.outputs.docker-image-name }}:rc-${{ matrix.image-variant }}
docker history ${{ steps.prep.outputs.docker-image-name }}:rc-${{ matrix.image-variant }}