Skip to content

Build Nightly Dev Images #363

Build Nightly Dev Images

Build Nightly Dev Images #363

name: Build Nightly Dev 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.0", "8.1", "8.2", "8.3"]
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push Docker image phpswoole/swoole:php${{ matrix.php }}-dev
id: docker_build
uses: docker/build-push-action@v3
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 }}-dev
build-args: DEV_MODE=true