Generates lots of tags by version and variants.
When tagging Docker images or GitHub Actions, we often use lots of tag variants something like:
rust:1.64.0 rust:1.64.0-bullseye-slim rust:1.64-bullseye rust:1.64 rust:1
This style is very convenient for image users, but it is difficult to list them correctly. We tried to generate these automatically from the given version and variants.
📦 Getting Started
If you do NOT want to use tagen on your code, use this installation.
cargo install tagen --features=cli
tagen is a hybrid crate, this mean you can use it on your own code.
[dependencies] tagen = "0.1"
Let's start with the simplest style:
1 1.64 1.64.0
Now add variants to them:
tagpr 1.64.0 bullseye slim
1-bullseye-slim 1-slim 1.64-bullseye-slim 1.64-slim 1.64.0-bullseye-slim 1.64.0-slim
Note that variants are shorten to right variant:
a b c variants to be
a-b are not generated in this case to avoid conflicting with
a b variants.