railwayapp / nixpacks

App source + Nix packages + Docker = Image
https://nixpacks.com
MIT License
2.64k stars 239 forks source link

Inject OCI Annotations as image labels #667

Open josegonzalez opened 2 years ago

josegonzalez commented 2 years ago

Feature request

Would be great to have OCI annotations automatically injected as image labels.

Motivation

This would allow downstream folks to know that an image was built with nixpacks/what version of nixpacks to use, and handle the images appropriately (such as launching containers differently for #658). I could then detect a nixpacks image vs one built another way and perform actions against those images appropriately.

Contribution

If you're willing, I'd be happy to do so. I think this just needs to be added to the template?

josegonzalez commented 1 year ago

Is this something you'd take a PR for?