Skip to content

ci: Fix dockerhub-release-matrix matrix generation - #2320

Queued
mmlb wants to merge 1 commit into
developfrom
push-rzvnmrovryxt
Queued

ci: Fix dockerhub-release-matrix matrix generation#2320
mmlb wants to merge 1 commit into
developfrom
push-rzvnmrovryxt

Conversation

@mmlb

@mmlb mmlb commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Dockerhub release workflow is failing due to the matrix strategy json being messed up. GITHUB_OUTPUT should be newline deliminated k=v pairs but we are currently writing w/o a newline so it sees one long non-json line.

What is the new behavior?

The fix is by having newlines separate each output definition.

Additional context

See failed run: https://github.com/supabase/postgres/actions/runs/30275880815

@mmlb
mmlb requested review from a team as code owners July 27, 2026 19:40
@mmlb
mmlb force-pushed the push-rzvnmrovryxt branch from d0da68d to 83e9fee Compare July 27, 2026 20:32
@mmlb
mmlb force-pushed the push-rzvnmrovryxt branch 2 times, most recently from ab50744 to 3ad44ea Compare July 28, 2026 17:00
@mmlb

mmlb commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator Author

I gave up on trying to get this to build but not push in PR branches, its too much of a diff with the current setup using ansible/vars.yml for base images. Will leave that for my upcoming work to use automatic git based versioning instead.

GITHUB_OUTPUT needs newline separated lines to separate outputs, nu's
`to json` and `save` do not insert any so the file was ending up as just
one long line and github does not like that. Fix it by appending a eol
char to the string before saving to the file.

I extracted this snippet and ran it and noticed the single-long-line and
@mmlb
mmlb force-pushed the push-rzvnmrovryxt branch from 3ad44ea to 512e91e Compare July 28, 2026 17:05
@mmlb

mmlb commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator Author

Ok my test build worked to build the images: https://github.com/supabase/postgres/actions/runs/30381275800. Canceling those CI and pushing w/o the DNM commit now.

@mmlb
mmlb force-pushed the push-rzvnmrovryxt branch from 512e91e to e4939ad Compare July 28, 2026 17:28
@mmlb
mmlb enabled auto-merge July 28, 2026 17:28
@mmlb
mmlb added this pull request to the merge queue Jul 28, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jul 28, 2026
@samrose
samrose added this pull request to the merge queue Jul 29, 2026
Any commits made after this event will not be merged.
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.

2 participants