Skip to content

Commit

Permalink
fix: use inputs for single-arch images
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Feb 3, 2025
1 parent 9911b51 commit 9a1b1f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-gdx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
with:
image-name: bluefin-gdx
flavor: gdx
platforms: adm64
11 changes: 3 additions & 8 deletions .github/workflows/reusable-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,9 @@ jobs:
IFS=',' read -r -a platforms <<< "${{ inputs.platforms }}"
MATRIX="{\"include\":[]}"
if [ "${{ inputs.flavor }}" == "gdx" ] ; then
# We explicitly only support Nvidia on x86 for now.
MATRIX=$(echo $MATRIX | jq ".include += [{\"platform\": \"amd64\"}]")
else
for platform in "${platforms[@]}"; do
MATRIX=$(echo $MATRIX | jq ".include += [{\"platform\": \"$platform\"}]")
done
fi
for platform in "${platforms[@]}"; do
MATRIX=$(echo $MATRIX | jq ".include += [{\"platform\": \"$platform\"}]")
done
echo "matrix=$(echo $MATRIX | jq -c '.')" >> $GITHUB_OUTPUT
build_push:
Expand Down

0 comments on commit 9a1b1f6

Please sign in to comment.