From d20ba1df3da032039c1bafcef639a8c563ee64b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Fr=C3=A9con?= Date: Fri, 9 Feb 2024 19:42:31 +0100 Subject: [PATCH] Convert in jobs instead --- .github/workflows/_build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index c946a53..19daf7b 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -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 @@ -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 @@ -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 }}