Skip to content

Build Nightly Images #774

Build Nightly Images

Build Nightly Images #774

name: Build Nightly Images
on:
schedule:
- cron: '47 4 * * *'
workflow_dispatch:
jobs:
build_nightly_images:
runs-on: ubuntu-22.04
if: github.repository == 'swoole/docker-swoole'
strategy:
fail-fast: true
matrix:
php: ["8.1", "8.2", "8.3", "8.4"]
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push Docker image phpswoole/swoole:php${{ matrix.php }}
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/nightly/php${{ matrix.php }}/cli/Dockerfile
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le
push: true
tags: phpswoole/swoole:php${{ matrix.php }}