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

[Feature request]: Support image labels #625

Closed
vvarga007 opened this issue Oct 18, 2023 · 2 comments
Closed

[Feature request]: Support image labels #625

vvarga007 opened this issue Oct 18, 2023 · 2 comments

Comments

@vvarga007
Copy link

I want to add custom LABELs to the image during the image build.
As I see, this is not supported by ansible-builder.

@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Oct 18, 2023
@Shrews
Copy link
Contributor

Shrews commented Oct 19, 2023

Use additional_build_steps (https://ansible.readthedocs.io/projects/builder/en/stable/definition/#additional-build-steps) to add any custom instruction file contents you wish to the final image. Example:

additional_build_steps:
    append_final:
        - LABEL my_fancy_label=xyz

@Shrews Shrews removed the needs_triage New item that needs to be triaged label Oct 19, 2023
@vvarga007
Copy link
Author

Oh, that works!
Thank you very much!

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

No branches or pull requests

2 participants