Skip to content
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

buildx(history): check buildx version before exporting #376

Merged
merged 1 commit into from
Jun 19, 2024

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>
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

@crazy-max crazy-max merged commit 8c81eef into docker:main Jun 19, 2024
44 checks passed
@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