Skip to content

Commit

Permalink
Convert in jobs instead
Browse files Browse the repository at this point in the history
  • Loading branch information
efrecon committed Feb 9, 2024
1 parent b2b8382 commit d20ba1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
convert:
runs-on: ${{ inputs.runs-on }}
outputs:
platforms: ${{ fromJson(steps.convert.outputs.platforms) }}
platforms: ${{ steps.convert.outputs.platforms }}
steps:
-
name: Convert Platforms
Expand All @@ -59,13 +59,13 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: ${{ needs.convert.outputs.platforms }}
platform: ${{ fromJSON(needs.convert.outputs.platforms) }}
steps:
-
name: Prepare
id: platform
run: |
platform=${{ needs.convert.outputs.platforms }}
platform=${{ fromJSON(needs.convert.outputs.platforms) }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
-
name: Checkout
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ needs.convert.outputs.platforms }}
platforms: ${{ fromJSON(needs.convert.outputs.platforms) }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
file: ${{ inputs.file }}
Expand Down

0 comments on commit d20ba1d

Please sign in to comment.