-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
a45e143
to
174076c
Compare
src/github.ts
Outdated
@@ -43,6 +43,8 @@ export interface GitHubOpts { | |||
token?: string; | |||
} | |||
|
|||
const cloudBuildsURL = 'https://app.docker.com/build/accounts/docker/builds'; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
8a1abf0
to
618c852
Compare
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
618c852
to
b16fac0
Compare
follow-up docker/build-push-action#1370 (comment)
alternative and closes #685
For single build:
When there are multiple refs built (with bake-action), the build URL will be set within the summary table for each record.