Skip to content

Commit

Permalink
Merge pull request #4 from Church13/php8.3
Browse files Browse the repository at this point in the history
add php8.3
  • Loading branch information
Church13 authored Sep 30, 2024
2 parents 3b8f736 + e7ee580 commit 8e8f1e5
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/docker-php8.3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: docker-php8.3

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '15 15 * * 1'
push:
branches: [ main ]
# Publish semver tags as releases.
pull_request:
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:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Copy custom.ini into container
run: |
cp custom.ini ./php8.3/custom.ini
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
php8.3
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./php8.3/
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
12 changes: 12 additions & 0 deletions php8.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM wordpress:php8.3

RUN pecl install redis && \
docker-php-ext-enable redis

RUN apt-get update && apt-get install -y libxml2-dev

RUN docker-php-ext-install soap

COPY custom.ini $PHP_INI_DIR/conf.d/

USER www-data:www-data

0 comments on commit 8e8f1e5

Please sign in to comment.