Skip to content

Commit afa1396

Browse files
authored
Merge pull request #693 from rossoctl/fix/build-args-duplicate-key
Fix: duplicate build-args key in Build-Publish workflow
2 parents 48fb3c7 + cff6df5 commit afa1396

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,15 @@ jobs:
146146
with:
147147
context: ${{ matrix.image_config.context }}
148148
file: ${{ matrix.image_config.context }}/${{ matrix.image_config.dockerfile }}
149-
build-args: ${{ matrix.image_config.build_args }}
149+
# Merge both build-arg sources into a single key: static per-image
150+
# args from the matrix (e.g. authbridge-lite GO_BUILD_TAGS) plus the
151+
# dynamically resolved args (authbridge-cpex CPEX_FFI_*). A duplicate
152+
# `build-args:` key is invalid YAML and fails the whole workflow; only
153+
# one image sets each source, so concatenating them is safe.
154+
build-args: |
155+
${{ matrix.image_config.build_args }}
156+
${{ steps.buildargs.outputs.args }}
150157
push: true
151158
platforms: linux/amd64,linux/arm64
152159
tags: ${{ steps.meta.outputs.tags }}
153160
labels: ${{ steps.meta.outputs.labels }}
154-
build-args: ${{ steps.buildargs.outputs.args }}

0 commit comments

Comments
 (0)