From 608f344f42960aa1d7564641b742633b4bd4ff04 Mon Sep 17 00:00:00 2001 From: iPromKnight Date: Sat, 9 Mar 2024 16:03:36 +0000 Subject: [PATCH] Hotfix the parameter passthrough --- .github/workflows/base_image_workflow.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/base_image_workflow.yaml b/.github/workflows/base_image_workflow.yaml index 5dc3228..6d32b1c 100644 --- a/.github/workflows/base_image_workflow.yaml +++ b/.github/workflows/base_image_workflow.yaml @@ -10,6 +10,11 @@ on: required: true type: string +# matrix cannot read from workflow_call inputs, so load them into the global env scope +env: + CONTEXT: ${{ github.event.inputs.CONTEXT }} + IMAGE_NAME: ${{ github.event.inputs.IMAGE_NAME }} + jobs: build-and-push-images: runs-on: ubuntu-latest @@ -24,8 +29,8 @@ jobs: strategy: matrix: include: - - context: ${{ github.event.inputs.CONTEXT }} - image_name: ${{ github.event.inputs.IMAGE_NAME }} + - context: ${{ env.CONTEXT }} + image_name: ${{ env.IMAGE_NAME }} platforms: linux/amd64,linux/arm64 name: Build - ${{ matrix.image_name }}