Skip to content

Conversation

ashu8912
Copy link
Member

@ashu8912 ashu8912 commented Dec 17, 2024

docker buildx build \ --platform linux/amd64,linux/arm64 \ --build-arg PLUGIN=your-plugin-name \ -t your-image-name:tag \ --push \ .

Copy link
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

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

@ashu8912 is there an issue or slack comment for this? Can you please add more context to the PR description?

If we're adding an extra argument I'd expect we'd want to use it from somewhere and document it.

@@ -41,6 +50,7 @@ COPY --from=builder /headlamp-plugins/build/ /plugins/

LABEL org.opencontainers.image.source=https://github.com/headlamp-k8s/plugins
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.platform=$TARGETPLATFORM
Copy link
Contributor

Choose a reason for hiding this comment

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

What if TARGETPLATFORM is empty? Is this still valid?

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