diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 7fb52fe1..f9e1630c 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -2,8 +2,6 @@ name: Build and publish docker image on: push: - branches: - - develop paths-ignore: - 'LICENSE' - '.*' @@ -12,24 +10,29 @@ on: - '*.yml*' - '*.json5' - '*.neon' + branches: + - develop tags: - 'v*' jobs: - build-openswoole: + build-image: + strategy: + matrix: + include: + - runtime: 'rr' + platforms: 'linux/arm64/v8,linux/amd64' + - runtime: 'rr' + tag-suffix: 'roadrunner' + platforms: 'linux/arm64/v8,linux/amd64' + - runtime: 'openswoole' + tag-suffix: 'openswoole' uses: shlinkio/github-actions/.github/workflows/docker-build-and-publish.yml@main secrets: inherit with: image-name: shlinkio/shlink version-arg-name: SHLINK_VERSION - - build-roadrunner: - uses: shlinkio/github-actions/.github/workflows/docker-build-and-publish.yml@main - secrets: inherit - with: - image-name: shlinkio/shlink - version-arg-name: SHLINK_VERSION - platforms: 'linux/arm64/v8,linux/amd64' - tags-suffix: roadrunner + platforms: ${{ matrix.platforms }} + tags-suffix: ${{ matrix.tag-suffix }} extra-build-args: | - SHLINK_RUNTIME=rr + SHLINK_RUNTIME=${{ matrix.runtime }} diff --git a/Dockerfile b/Dockerfile index c0120921..10897176 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM php:8.2-alpine3.17 as base ARG SHLINK_VERSION=latest ENV SHLINK_VERSION ${SHLINK_VERSION} -ARG SHLINK_RUNTIME=openswoole +ARG SHLINK_RUNTIME=rr ENV SHLINK_RUNTIME ${SHLINK_RUNTIME} ENV OPENSWOOLE_VERSION 22.0.0 ENV PDO_SQLSRV_VERSION 5.10.1