mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 15:40:33 -06:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Build and publish docker image
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'LICENSE'
|
|
- '.*'
|
|
- '*.md'
|
|
- '*.xml'
|
|
- '*.yml*'
|
|
- '*.json5'
|
|
- '*.neon'
|
|
branches:
|
|
- develop
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
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'
|
|
platforms: 'linux/arm/v7,linux/arm64/v8,linux/amd64'
|
|
- runtime: 'rr'
|
|
tag-suffix: 'non-root'
|
|
platforms: 'linux/arm64/v8,linux/amd64'
|
|
user-id: '1001'
|
|
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: ${{ matrix.platforms }}
|
|
tags-suffix: ${{ matrix.tag-suffix }}
|
|
extra-build-args: |
|
|
SHLINK_RUNTIME=${{ matrix.runtime }}
|
|
SHLINK_USER_ID=${{ matrix.user-id && matrix.user-id || 'root' }}
|