Skip to content

Commit def97dc

Browse files
committed
docs(ci): explain why docker-multiarch uses placeholder tokens instead of matrix expressions
1 parent db4dfc4 commit def97dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docker-multiarch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ jobs:
134134
path: /tmp/digests
135135
merge-multiple: true
136136

137+
# Resolve {{name}}/{{suffix}}/{{is_latest}}/{{is_variant}} placeholders.
138+
# Why bash-substitution instead of GHA's `${{ matrix.* }}`:
139+
# GHA evaluates expressions in a caller's `with:` inputs at CALLER scope,
140+
# where `matrix` is undefined (the matrix lives inside this reusable
141+
# workflow, not in the caller). Passing `${{ matrix.variant.x }}` from a
142+
# caller therefore fails workflow parse. Placeholders let the caller
143+
# write template strings that this job resolves at matrix-expansion time.
137144
- name: Resolve tag rules
138145
id: tagrules
139146
env:

0 commit comments

Comments
 (0)