E541 buildx(history): check buildx version before exporting by crazy-max · Pull Request #376 · docker/actions-toolkit · GitHub
[go: up one dir, main page]

Skip to content

Conversation

crazy-max
Copy link
Member

fixes docker/build-push-action#1143
closes docker/build-push-action#1145

Build summary requires Buildx dial-stdio command available since Buildx 0.13.0. This adds an extra check to make sure current Buildx version is supported before exporting.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max requested a review from tonistiigi June 19, 2024 16:35
Copy link
Member
@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

@crazy-max I assume failing to export history record does not fail the action invocation?

@crazy-max
Copy link
Member Author
crazy-max commented Jun 19, 2024

@crazy-max I assume failing to export history record does not fail the action invocation?

No we catch the error and just warn: https://github.com/docker/build-push-action/blob/94f8f8c2eec4bc3f1d78c1755580779804cb87b2/src/main.ts#L169-L170

And even if it wasn't the case this would still not fail the build invocation as generating summary is done in post step of the action: https://github.com/docker/build-push-action/blob/94f8f8c2eec4bc3f1d78c1755580779804cb87b2/src/main.ts#L141-L144

7C24
@crazy-max crazy-max merged commit 8c81eef into docker:main Jun 19, 2024
@crazy-max crazy-max deleted the export-buildx-version branch June 19, 2024 18:27
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.

Build summary generation failing
2 participants
0