From c7b629c1778b69aaba086a33ab53ed78050e70d2 Mon Sep 17 00:00:00 2001 From: Benjamin Krein Date: Mon, 20 Jan 2025 09:29:49 -0500 Subject: [PATCH] support manual build specific output --- .github/workflows/manual-build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index 7c7e20e..e08f477 100644 --- a/.github/workflows/manual-build.yml +++ b/.github/workflows/manual-build.yml @@ -11,6 +11,14 @@ on: type: string default: test required: true + output: + description: Appliance output type + type: choose + options: + - all + - virtualbox-iso + - vmware-iso + - qemu # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -25,5 +33,10 @@ jobs: - uses: actions/checkout@v4 # Runs a set of commands using the runners shell - - name: Manual Build + - name: Manual Build All + if: github.event.inputs.output == "all" run: ./packer_build.sh -u -v ${{ github.event.inputs.version }} + + - name: Manual Build ${{ inputs.output }} + if: github.event.inputs.output != "all" + run: ./packer_build.sh -u -v ${{ github.event.inputs.version }} -o ${{ github.event.inputs.output }}