Skip to content

Commit

Permalink
demonstrate how we change runner based on arch
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Dec 20, 2024
1 parent a96feb1 commit 3ce84f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
echo "matrix=$(echo $MATRIX | jq -c '.')" >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-24.04
runs-on: ${{ matrix.platform == 'amd64' && 'ubuntu-latest' || 'ubuntu-latest' }}
needs: generate_matrix
strategy:
matrix: ${{fromJson(needs.generate_matrix.outputs.matrix)}}
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
done
# Temporarily populate the digest file with a dummy value
echo "dummy-digest ${{ matrix.platform }}" > /tmp/digestfile
echo "dummy-digest-${{ matrix.platform }}" > /tmp/digestfile
IMAGE_DIGEST=$(cat /tmp/digestfile)
echo "IMAGE_DIGEST=${IMAGE_DIGEST}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 3ce84f0

Please sign in to comment.