This is an automated email from the ASF dual-hosted git repository.

sciabarracom pushed a commit to branch 0.9.0
in repository https://gitbox.apache.org/repos/asf/openserverless-runtimes.git

commit c457777382d8414293c90e25a8ba3247939b7fd8
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sun Sep 6 12:20:54 2026 +0200

    rework workflow
---
 .github/workflows/image.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml
index 23cc8b5..30e3d23 100644
--- a/.github/workflows/image.yaml
+++ b/.github/workflows/image.yaml
@@ -169,11 +169,6 @@ jobs:
   runtimes:
     name: ${{ matrix.rt }}:${{ matrix.ver }}
     needs: [check, common]
-    # build this shard only when the tag selects it: "all_*" builds every
-    # runtime, "<lang>_*" builds just that language, "common_*" builds none
-    if: >-
-      ${{ needs.common.outputs.scope == 'all'
-          || needs.common.outputs.scope == matrix.rt }}
     runs-on: ubuntu-22.04
     permissions:
       contents: read
@@ -250,5 +245,10 @@ jobs:
           image: tonistiigi/binfmt:qemu-v7.0.0-28
       - name: Set up Docker Buildx
         uses: 
docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
+      # build this shard only when the tag selects it: "all_*" builds every
+      # runtime, "<lang>_*" builds just that language, "common_*" builds none.
+      # This gate is on the step, not the job: "matrix" is not available in a
+      # job-level "if", which GitHub rejects as an invalid workflow file.
       - name: Build and push ${{ matrix.rt }}:${{ matrix.ver }}
+        if: ${{ needs.common.outputs.scope == 'all' || 
needs.common.outputs.scope == matrix.rt }}
         run: task buildx FILTER="${{ matrix.rt }}:${{ matrix.ver }}"

Reply via email to