Skip to content

Commit 5833081

Browse files
committed
ci(builder): add target input (iso|netboot) to build-custom
Lets the free lane build + validate netboot artifacts (Phase 3) on GitHub runners, not just ISOs. Backend's GCP lane already passes TARGET via metadata.
1 parent acdede5 commit 5833081

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/build-custom.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ on:
1919
description: 'Build id (Firestore doc id)'
2020
required: true
2121
type: string
22+
target:
23+
description: 'Artifact target'
24+
required: false
25+
default: 'iso'
26+
type: choice
27+
options: [iso, netboot]
2228

2329
env:
2430
GCS_BUCKET: sourceos-artifacts-socioprophet
@@ -54,6 +60,7 @@ jobs:
5460
PREFIX="gs://${GCS_BUCKET}/user-builds/${{ github.event.inputs.uid }}/${{ github.event.inputs.build_id }}"
5561
printf '%s' '${{ github.event.inputs.spec }}' > /tmp/spec.json
5662
SPEC_FILE=/tmp/spec.json OUT=out GCS_PREFIX="$PREFIX" \
63+
TARGET="${{ github.event.inputs.target || 'iso' }}" \
5764
bash scripts/build-custom-image.sh
5865
echo "artifact=$(cat out/artifact-url.txt)" >> "$GITHUB_OUTPUT"
5966

0 commit comments

Comments
 (0)