Skip to content

github: support cloud build URL when writing summary #686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 23, 2025

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented May 12, 2025

follow-up docker/build-push-action#1370 (comment)
alternative and closes #685

For single build:

image

When there are multiple refs built (with bake-action), the build URL will be set within the summary table for each record.

crazy-max added 2 commits May 22, 2025 15:17
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the gh-summary-cloud-driver branch from a45e143 to 174076c Compare May 22, 2025 14:13
@crazy-max crazy-max changed the title github: support build URL when writing summary github: support cloud build URL when writing summary May 22, 2025
@crazy-max crazy-max marked this pull request as ready for review May 22, 2025 14:51
src/github.ts Outdated
@@ -43,6 +43,8 @@ export interface GitHubOpts {
token?: string;
}

const cloudBuildsURL = 'https://app.docker.com/build/accounts/docker/builds';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize that I have the same mistake in my PR but we have to use a param for the account part (hard-coded to docker here). The account is part of the builder endpoint.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok it's the builder name I assume?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think build and push action creates the builder with a -name flag right? So it might not be in the builder name.

Copy link
Member Author

@crazy-max crazy-max May 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes this is part of the endpoint in setup-buildx-action: https://docs.docker.com/build-cloud/ci/#github-actions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, we would just need to pass driver and endpoint to write summary opts. Let me know what you think.

@crazy-max crazy-max force-pushed the gh-summary-cloud-driver branch 2 times, most recently from 8a1abf0 to 618c852 Compare May 23, 2025 08:07
@crazy-max crazy-max requested a review from nico1510 May 23, 2025 08:18
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the gh-summary-cloud-driver branch from 618c852 to b16fac0 Compare May 23, 2025 08:21
@crazy-max crazy-max merged commit 6691b2b into docker:main May 23, 2025
94 checks passed
@crazy-max crazy-max deleted the gh-summary-cloud-driver branch May 23, 2025 13:44
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