Skip to content

Conversation

@architmallik7
Copy link
Contributor

Added new input PLUGIN_BUILDX_OPTIONS to pass any supported options to buildx command.

Tested the changes locally:
image

image

@Ompragash Ompragash requested a review from jamie-harness March 13, 2025 10:18
@architmallik7
Copy link
Contributor Author

VIDEO-2025-03-13-15-48-36.mp4

@Ompragash Ompragash changed the title feat: [CI-16432]: Added new input PLUGIN_BUILDX_OPTIONS feat: [CI-16595]: Added new input PLUGIN_BUILDX_OPTIONS Mar 14, 2025
@Ompragash Ompragash merged commit e69f902 into master Mar 14, 2025
5 of 6 checks passed
HarnessSelfHostedS3AccessKey: c.String("harness-self-hosted-s3-access-key"),
HarnessSelfHostedS3SecretKey: c.String("harness-self-hosted-s3-secret-key"),
HarnessSelfHostedGcpJsonKey: c.String("harness-self-hosted-gcp-json-key"),
BuildxOptions: c.StringSlice("buildx-options"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this comma separated list? Can you please add a comment on how to use this option. Also please add to README as an example.
https://github.com/drone-plugins/drone-buildx#using-docker-buildkit-secrets

}
if len(build.BuildxOptions) > 0 {
args = append(args, build.BuildxOptions...)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add Unit Tests.

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.

5 participants