Skip to content

Install sockets.

Install sockets. #32

Workflow file for this run

name: Docker Builds
on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- 'v*.*.*'
permissions:
contents: read
packages: write
jobs:
build-images:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# PHP 8
- image: eksponent/php8
context: php8
dockerfile: Dockerfile-8-0-fpm
tag: 8-0-fpm
- image: eksponent/php8
context: php8
dockerfile: Dockerfile-8-1-fpm
tag: 8-1-fpm
- image: eksponent/php8
context: php8
dockerfile: Dockerfile-8-2-fpm
tag: 8-2-fpm
- image: eksponent/php8
context: php8
dockerfile: Dockerfile-8-3-fpm
tag: 8-3-fpm
# PHP workers
- image: eksponent/php-with-supervisor-for-workers
context: php-with-supervisor-for-workers
dockerfile: Dockerfile-8.0
tag: '8.0'
- image: eksponent/php-with-supervisor-for-workers
context: php-with-supervisor-for-workers
dockerfile: Dockerfile-8.1
tag: '8.1'
- image: eksponent/php-with-supervisor-for-workers
context: php-with-supervisor-for-workers
dockerfile: Dockerfile-8.2
tag: '8.2'
- image: eksponent/php-with-supervisor-for-workers
context: php-with-supervisor-for-workers
dockerfile: Dockerfile-8.3
tag: '8.3'
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: ./${{ matrix.context }}
file: ./${{ matrix.context }}/${{ matrix.dockerfile }}
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ matrix.image }}:${{ matrix.tag }}