diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3737e036a9..9ba481cc91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 @@ -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