Skip to content

Commit

Permalink
feat: make default arch-map value use labels instead of runner name
Browse files Browse the repository at this point in the history
  • Loading branch information
clay-lake committed Sep 23, 2024
1 parent 448b8a2 commit 3c5d295
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/Build-Rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,13 @@ name: Build Rock
on:
workflow_call:
inputs:
# build configuration
# build parameters
oci-archive-name:
description: "Final filename of the Rock OCI archive."
type: string
required: true
arch-map:
description: "JSON string mapping target architecture to runner."
type: string
default: '{"amd64": "ubuntu-22.04"}'
lpci-fallback:
description: 'Enable fallback to Launchpad build when runners for target arch are not available.'
type: boolean
default: false

# source configuration
# source parameters
rock-repo:
description: "Public Git repo where to build the rock from."
type: string
Expand All @@ -31,6 +23,17 @@ on:
type: string
required: true

# optional parameters for multi-arch builds
arch-map:
description: "JSON string mapping target architecture to runners."
type: string
default: '{"amd64": ["linux", "X64"], "arm64": ["linux", "ARM64"]}'
lpci-fallback:
description: 'Enable fallback to Launchpad build when runners for target arch are not available.'
type: boolean
default: false



env:
ROCK_REPO_DIR: rock-repo # path where the image repo is cloned to
Expand Down

0 comments on commit 3c5d295

Please sign in to comment.