Skip to content

fix(docker): use heredoc delimiter for multiline GITHUB_OUTPUT#190

Open
debanjan97 wants to merge 2 commits intomainfrom
debanjan/pro-5596-fix-multiline-github-output
Open

fix(docker): use heredoc delimiter for multiline GITHUB_OUTPUT#190
debanjan97 wants to merge 2 commits intomainfrom
debanjan/pro-5596-fix-multiline-github-output

Conversation

@debanjan97
Copy link
Copy Markdown
Member

Why

The latest tag added in #188 made the metadata outputs multiline. The Get tags and labels for this arch step wrote these with echo "tags=..." >> $GITHUB_OUTPUT, but when the value spans multiple lines the second line lacks a key= prefix and GitHub rejects it:

Error: Unable to process file command 'output' successfully.
Error: Invalid format '422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/profiles-code-server:latest-arm64'

Summary

  • Switch from echo "key=value" to the heredoc delimiter syntax (key<<EOF) for writing multiline tags and labels to $GITHUB_OUTPUT

Test plan

  • Trigger a release build and confirm both v<VERSION> and latest tags are produced without output errors

Resolves PRO-5596

🤖 Generated with Claude Code

debanjan97 and others added 2 commits April 17, 2026 19:31
The `Get tags and labels for this arch` step wrote multiline tag values
using simple `echo "tags=..." >> $GITHUB_OUTPUT`. When there are
multiple tags (e.g., version + latest), the second line has no key=
prefix and GitHub rejects it as an invalid output format.

Switch to the heredoc delimiter syntax (`<<EOF`) so multiline values
are handled correctly.

PRO-5596

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scanned-by: gitleaks 8.29.0
Temporary change — revert before merging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scanned-by: gitleaks 8.29.0
@github-actions
Copy link
Copy Markdown
Contributor

Docker Preview Images Ready

Preview Docker images have been built for this PR:

ECR (internal):

docker pull 422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/profiles-code-server:pr-190

Image Details:

  • Tag: pr-190
  • Platforms: linux/amd64, linux/arm64

Test the image:

docker run --rm -p 8080:8080 422074288268.dkr.ecr.us-east-1.amazonaws.com/rudderstack/profiles-code-server:pr-190

Note: These preview images will be overwritten on subsequent pushes to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant