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

Flag to add additional labels to resulting image #145

Merged
merged 2 commits into from
May 26, 2022
Merged

Conversation

coffee-cup
Copy link
Contributor

New flag to add additional labels to the resulting Docker image. For example,

nixpacks build examples/XXX --label one two three

screenshot-2022-05-26-11 42 02

Closes #142

@coffee-cup coffee-cup marked this pull request as ready for review May 26, 2022 15:44
@@ -72,6 +73,7 @@ pub fn build(
plan_path: Option<String>,
out_dir: Option<String>,
tags: Vec<&str>,
labels: Vec<&str>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we using &str as opposed to String?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No big reason. It is just the type that comes from clap's values_of https://github.com/railwayapp/nixpacks/blob/main/src/main.rs#L119

@coffee-cup coffee-cup merged commit c6318b9 into main May 26, 2022
@coffee-cup coffee-cup deleted the jr/label-flag branch May 26, 2022 23:29
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.

Add a way to specify container labels on the built images
2 participants