ansible / ansible-builder

An Ansible execution environment builder
Other
289 stars 93 forks source link

[Feature request]: Support image labels #625

Closed vvarga007 closed 11 months ago

vvarga007 commented 11 months ago

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

Shrews commented 11 months ago

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
vvarga007 commented 11 months ago

Oh, that works! Thank you very much!