Skip to content

Commit

Permalink
allow to perform sub platform release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Apr 20, 2024
1 parent 8386591 commit ffb831a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
description: 'Skip build (for testing workflow)?'
required: true
default: "true"
platforms:
description: 'List of platforms to build (comma seperated, e.g. "rpi3","rpi4")'
required: true
default: 'all'
type: string

# default read-only permission
permissions:
Expand Down Expand Up @@ -111,7 +116,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [rpi0, rpi2, rpi3, rpi4, rpi5, tinkerboard, odroid-c2, odroid-c4, odroid-n2, intelnuc, ova, oci_amd64, oci_arm64, oci_arm, generic-aarch64, lxc_amd64, lxc_arm64, lxc_arm]
platform: ${{ fromJSON(format('[{0}]', (github.event.inputs.platforms == '' || github.event.inputs.platforms == 'all') && '"rpi0","rpi2","rpi3","rpi4","rpi5","tinkerboard","odroid-c2","odroid-c4","odroid-n2","intelnuc","ova","oci_amd64","oci_arm64","oci_arm","generic-aarch64","lxc_amd64","lxc_arm64","lxc_arm"' || github.event.inputs.platforms)) }}

steps:
- name: Checkout Code
Expand Down Expand Up @@ -330,6 +335,10 @@ jobs:
name: OCI/Docker Build+Push
runs-on: ubuntu-22.04
needs: [release_draft, build]
if: github.event_name != 'pull_request' &&
( github.event.inputs.platforms == '' ||
github.event.inputs.platforms == 'all' ||
contains(github.event.inputs.platforms, 'oci_'))

steps:
- name: Checkout Code
Expand Down

0 comments on commit ffb831a

Please sign in to comment.