Skip to content

Commit

Permalink
build Docker images under different platforms separately
Browse files Browse the repository at this point in the history
Signed-off-by: Demin Yin <deminy@deminy.net>
  • Loading branch information
deminy committed Jan 1, 2025
1 parent 7f6e9fe commit 39b9fa6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
matrix:
type: ["server", "client"]
version: ["5.1", "6.0"]
platform: ["linux/amd64", "linux/arm64/v8", "linux/ppc64le"]

steps:
-
Expand All @@ -38,14 +39,14 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and Publish Docker Image
name: Build and Publish Docker Image of ${{ matrix.platform }}
id: docker_build
uses: docker/build-push-action@v6
with:
context: ./dockerfiles/${{ matrix.type }}/
build-args: |
SWOOLE_VERSION=${{ matrix.version }}
PHP_VERSION=8.3
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le
platforms: ${{ matrix.platform }}
push: true
tags: deminy/swoole-by-examples:${{ matrix.type }}-${{ matrix.version }}

0 comments on commit 39b9fa6

Please sign in to comment.