Skip to content

Build Nightly Alpine Images #728

Build Nightly Alpine Images

Build Nightly Alpine Images #728

name: Build Nightly Alpine 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"]
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 }}-alpine
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/nightly/php${{ matrix.php }}/alpine/Dockerfile
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x
push: true
tags: phpswoole/swoole:php${{ matrix.php }}-alpine