Release Choice Image #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Choice Image | |
on: | |
workflow_dispatch: | |
inputs: | |
choice_service: | |
description: 'Service to build, e.g. abracadabra-web' | |
required: true | |
default: 'hello-world' | |
type: choice | |
options: | |
- nginx | |
- snell-server | |
- abracadabra-web | |
- libreoffice-server | |
- y-webrtc-signaling | |
- request-hub | |
- hello-world | |
docker_tag: | |
description: 'Docker image tag, e.g. latest' | |
required: true | |
type: string | |
default: 'latest' | |
build_args: | |
description: 'Docker build args list, e.g. BUILD_DATE=$(date +%Y-%m-%d),VERSION=1.0.0' | |
required: false | |
type: string | |
default: 'BUILD_DATE=$(date +%Y-%m-%d)' | |
build_platforms: | |
description: 'Docker build platforms, if not specified, default is the service all available platforms, e.g. linux/amd64,linux/arm64,linux/arm/v8,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x,linux/386,linux/riscv64' | |
required: false | |
type: string | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
snell_server_release: | |
if: ${{ github.event.inputs.choice_service == 'snell-server' }} | |
uses: ./.github/workflows/release.yml | |
with: | |
build_context: './Docker/snell-server' | |
docker_image_name: snell-server | |
docker_tag: ${{ github.event.inputs.docker_tag }} | |
build_args: ${{ github.event.inputs.build_args }} | |
build_platforms: ${{ github.event.inputs.build_platforms || 'linux/amd64,linux/arm64,linux/arm/v7,linux/386' }} | |
secrets: inherit | |
nginx_release: | |
if: ${{ github.event.inputs.choice_service == 'nginx' }} | |
uses: ./.github/workflows/release.yml | |
with: | |
build_context: './Docker/nginx' | |
docker_image_name: nginx | |
docker_tag: ${{ github.event.inputs.docker_tag }} | |
build_args: ${{ github.event.inputs.build_args || 'BUILD_DATE=$(date +%Y-%m-%d),VERSION=1.27.3' }} | |
build_platforms: ${{ github.event.inputs.build_platforms || 'linux/arm64,linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8' }} | |
secrets: inherit | |
abracadabra_web_release: | |
if: ${{ github.event.inputs.choice_service == 'abracadabra-web' }} | |
uses: ./.github/workflows/release.yml | |
with: | |
build_context: './Docker/abracadabra-web' | |
docker_image_name: abracadabra-web | |
docker_tag: ${{ github.event.inputs.docker_tag }} | |
build_args: ${{ github.event.inputs.build_args }} | |
build_platforms: ${{ github.event.inputs.build_platforms || 'linux/amd64,linux/arm64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x' }} | |
secrets: inherit | |
libreoffice_server_release: | |
if: ${{ github.event.inputs.choice_service == 'libreoffice-server' }} | |
uses: ./.github/workflows/release.yml | |
with: | |
build_context: './Docker/libreoffice-server' | |
docker_image_name: libreoffice-server | |
docker_tag: ${{ github.event.inputs.docker_tag }} | |
build_args: ${{ github.event.inputs.build_args }} | |
build_platforms: ${{ github.event.inputs.build_platforms || 'linux/amd64,linux/arm64' }} | |
secrets: inherit | |
y_webrtc_signaling_release: | |
if: ${{ github.event.inputs.choice_service == 'y-webrtc-signaling' }} | |
uses: ./.github/workflows/release.yml | |
with: | |
build_context: './Docker/y-webrtc-signaling' | |
docker_image_name: y-webrtc-signaling | |
docker_tag: ${{ github.event.inputs.docker_tag }} | |
build_args: ${{ github.event.inputs.build_args }} | |
build_platforms: ${{ github.event.inputs.build_platforms || 'linux/amd64,linux/arm64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x' }} | |
secrets: inherit | |
request_hub_release: | |
if: ${{ github.event.inputs.choice_service == 'request-hub' }} | |
uses: ./.github/workflows/release.yml | |
with: | |
build_context: './Docker/request-hub' | |
docker_image_name: request-hub | |
docker_tag: ${{ github.event.inputs.docker_tag }} | |
build_args: ${{ github.event.inputs.build_args }} | |
build_platforms: ${{ github.event.inputs.build_platforms || 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/s390x' }} | |
secrets: inherit | |
hello_world_release: | |
if: ${{ github.event.inputs.choice_service == 'hello-world' }} | |
uses: ./.github/workflows/release.yml | |
with: | |
build_context: './Docker/hello-world' | |
docker_image_name: hello-world | |
docker_tag: ${{ github.event.inputs.docker_tag }} | |
build_args: ${{ github.event.inputs.build_args }} | |
build_platforms: ${{ github.event.inputs.build_platforms || 'linux/amd64' }} | |
secrets: inherit |