Build Latest Dev Images #858
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 Latest Dev Images | |
| on: | |
| schedule: | |
| - cron: '47 4 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| build_latest_images: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'openswoole/docker-openswoole' }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php: ["8.3", "8.4", "8.5"] | |
| 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: Set full names of the Docker image | |
| id: set_full_names | |
| run: echo "full_names=openswoole/openswoole:php${{ matrix.php }}-dev" >> $GITHUB_OUTPUT | |
| - | |
| name: Build and push Docker image openswoole/openswoole:php${{ matrix.php }}-dev | |
| id: docker_build | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: dockerfiles/latest/php${{ matrix.php }}/cli/Dockerfile | |
| platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le | |
| push: true | |
| tags: ${{ steps.set_full_names.outputs.full_names }} | |
| build-args: DEV_MODE=true | |
| - | |
| name: Image digest of openswoole/openswoole:php${{ matrix.php }}-dev | |
| run: echo ${{ steps.docker_build.outputs.digest }} |