-
Notifications
You must be signed in to change notification settings - Fork 115
42 lines (36 loc) · 1.2 KB
/
manually_build_nightly_dev_images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build Nightly Dev Images Manually
on:
push:
branches:
- platforms
workflow_dispatch:
jobs:
build_nightly_images_manually:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php: ["8.1", "8.2", "8.3", "8.4"]
image: [{type: "cli", postfix: ""}, {type: "zts", postfix: "-zts"}]
platform: ["linux/386", "linux/amd64", "linux/arm/v5", "linux/arm/v7", "linux/arm64/v8", "linux/mips64le", "linux/ppc64le", "linux/s390x"]
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: Build and push Docker image phpswoole/swoole:php${{ matrix.php }} on ${ matrix.platform }}
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/nightly/php${{ matrix.php }}/${{ matrix.image.type }}/Dockerfile
platforms: ${{ matrix.platform }}
push: false
tags: phpswoole/swoole:php${{ matrix.php }}${{ matrix.image.postfix }}-dev
build-args: DEV_MODE=true