Skip to content

small adjustments, including documentation updates #85

small adjustments, including documentation updates

small adjustments, including documentation updates #85

name: Build Docker Images
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-docker-images:
runs-on: ubuntu-22.04
if: ${{ github.repository == 'deminy/swoole-by-examples' }}
strategy:
fail-fast: true
matrix:
type: ["server", "client"]
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 Publish Docker Image
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./dockerfiles/${{ matrix.type }}/
platforms: linux/amd64,linux/arm64/v8
push: true
tags: deminy/swoole-by-examples:${{ matrix.type }}-5.1