Skip to content

Commit

Permalink
support manual build specific output
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamink committed Jan 20, 2025
1 parent a27d33b commit c7b629c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit c7b629c

Please sign in to comment.