Skip to content

Commit

Permalink
ci: read matrix output
Browse files Browse the repository at this point in the history
  • Loading branch information
DrummyFloyd committed Jan 6, 2025
1 parent e6bd628 commit 213a18c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ jobs:
runner: "${{ matrix.platforms.runner }}"
secrets: inherit

## Read matrix base-app outputs
read-matrix:
runs-on: ubuntu-latest
needs: [base-app]
steps:
- uses: cloudposse/github-action-matrix-outputs-read@v1
id: read
with:
matrix-step-name: base-app
outputs:
results: "${{ steps.read.outputs.result }}"

apps-amd64:
needs: [base, base-app]
strategy:
Expand All @@ -62,7 +74,7 @@ jobs:
with:
image_name: "${{ matrix.image }}"
base_image: "${{ needs.base.outputs.image_tag }}"
base_app_image: "${{ needs.base-app.outputs.image_tag }}"
base_app_image: '${{ fromJson(needs.read.outputs.results).name.["linux/amd64"] }}'
secrets: inherit

apps-arm64:
Expand All @@ -76,7 +88,7 @@ jobs:
with:
image_name: "${{ matrix.image }}"
base_image: "${{ needs.base.outputs.image_tag }}"
base_app_image: "${{ needs.base-app.outputs.image_tag }}"
base_app_image: '${{ fromJson(needs.read.outputs.results).name.["linux/arm64"] }}'
platforms: "linux/arm64"
runner: "ARM64"
secrets: inherit

0 comments on commit 213a18c

Please sign in to comment.