mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
github/workflows/docker: Add manual dispatch arguments.
This commit is contained in:
parent
dabc8b4304
commit
5f3398bf52
1 changed files with 21 additions and 12 deletions
33
.github/workflows/docker.yml
vendored
33
.github/workflows/docker.yml
vendored
|
@ -4,18 +4,27 @@
|
||||||
name: Docker Images
|
name: Docker Images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
features:
|
||||||
|
type: string
|
||||||
|
description: JSON array of feature-set names to build images for.
|
||||||
|
distros:
|
||||||
|
type: string
|
||||||
|
description: JSON array of operating system distros to build for.
|
||||||
|
machines:
|
||||||
|
type: string
|
||||||
|
description: JSON array of machines to build for.
|
||||||
|
toolchains:
|
||||||
|
type: string
|
||||||
|
description: JSON array of compiler toolchains to build for.
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.ref }}
|
group: ${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ctor_id: ${{ vars.DOCKER_ID }}
|
ctor_id: ${{vars.DOCKER_ID}}
|
||||||
ctor_url: https://github.com/${{github.repository}}
|
ctor_url: https://github.com/${{github.repository}}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -26,8 +35,8 @@ jobs:
|
||||||
id: ${{github.env.ctor_id}}
|
id: ${{github.env.ctor_id}}
|
||||||
url: ${{github.env.ctor_url}}
|
url: ${{github.env.ctor_url}}
|
||||||
features: '["base"]'
|
features: '["base"]'
|
||||||
distros: ${{vars.DOCKER_DISTROS}}
|
distros: ${{github.event.inputs.distros || vars.DOCKER_DISTROS}}
|
||||||
machines: ${{vars.DOCKER_MACHINES}}
|
machines: ${{github.event.inputs.machines || vars.DOCKER_MACHINES}}
|
||||||
test: ${{contains(github.events.push.commits[0].message, '[ci test]')}}
|
test: ${{contains(github.events.push.commits[0].message, '[ci test]')}}
|
||||||
|
|
||||||
# Build the full-feature intermediate images (cached and not shipped).
|
# Build the full-feature intermediate images (cached and not shipped).
|
||||||
|
@ -38,8 +47,8 @@ jobs:
|
||||||
id: ${{github.env.ctor_id}}
|
id: ${{github.env.ctor_id}}
|
||||||
url: ${{github.env.ctor_url}}
|
url: ${{github.env.ctor_url}}
|
||||||
features: '["full"]'
|
features: '["full"]'
|
||||||
distros: ${{vars.DOCKER_DISTROS}}
|
distros: ${{github.event.inputs.distros || vars.DOCKER_DISTROS}}
|
||||||
machines: ${{vars.DOCKER_MACHINES}}
|
machines: ${{github.event.inputs.machines || vars.DOCKER_MACHINES}}
|
||||||
test: ${{contains(github.events.push.commits[0].message, '[ci test]')}}
|
test: ${{contains(github.events.push.commits[0].message, '[ci test]')}}
|
||||||
|
|
||||||
# Build the leaf images (shipped and not cached)
|
# Build the leaf images (shipped and not cached)
|
||||||
|
@ -49,10 +58,10 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
feature: ${{fromJSON(vars.DOCKER_FEATURES)}}
|
feature: ${{fromJSON(github.event.inputs.features || vars.DOCKER_FEATURES)}}
|
||||||
distro: ${{fromJSON(vars.DOCKER_DISTROS)}}
|
distro: ${{fromJSON(github.event.inputs.distros || vars.DOCKER_DISTROS)}}
|
||||||
machine: ${{fromJSON(vars.DOCKER_MACHINES)}}
|
machine: ${{fromJSON(github.event.inputs.machines || vars.DOCKER_MACHINES)}}
|
||||||
toolchain: ${{fromJSON(vars.DOCKER_TOOLCHAINS)}}
|
toolchain: ${{fromJSON(github.event.inputs.toolchains || vars.DOCKER_TOOLCHAINS)}}
|
||||||
exclude:
|
exclude:
|
||||||
- distro: alpine-3.17
|
- distro: alpine-3.17
|
||||||
toolchain: gcc-10 # n/a on distro version
|
toolchain: gcc-10 # n/a on distro version
|
||||||
|
|
Loading…
Reference in a new issue