Build Nightly Dev Images #1122
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Nightly Dev Images | |
| on: | |
| schedule: | |
| - cron: '47 11 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| build_nightly_images: | |
| runs-on: ubuntu-24.04-arm | |
| if: github.repository == 'swoole/docker-swoole' | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php: ["8.1", "8.2", "8.3", "8.4"] | |
| image: [{type: "cli", postfix: ""}, {type: "zts", postfix: "-zts"}] | |
| 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 }}-dev | |
| id: docker_build | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: dockerfiles/nightly/php${{ matrix.php }}/${{ matrix.image.type }}/Dockerfile | |
| platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x | |
| push: true | |
| tags: phpswoole/swoole:php${{ matrix.php }}${{ matrix.image.postfix }}-dev | |
| build-args: DEV_MODE=true |