microscaling / microbadger

What's inside your Docker containers?
Other
159 stars 17 forks source link

Support tags #2

Closed atmoz closed 7 years ago

atmoz commented 8 years ago

Looks like it's possible to select tags from a dropdown list, but the badge image url stays the same (and shows the "latest" tag).

Is this a bug or a missing feature?

lizrice commented 8 years ago

The idea is that you wouldn't need to update the badge - it would always show the 'latest' version (once we've refreshed the information, or straight away if you use the webhook to let us know that it has updated).

It sounds as though you'd like to have badges for different tags - can you tell us a bit more about the use case?

atmoz commented 8 years ago

I have two types of tags that use two different kind of distributions: debian and alpine. I would love to add a badge on each line under "Supported tags ...", showing users the difference in size between debian and alpine, here: https://hub.docker.com/r/atmoz/sftp/

JacobSanford commented 8 years ago

+1 To this!

rochdev commented 8 years ago

+1

rossf7 commented 8 years ago

The badge images now support tags in the URL e.g. https://images.microbadger.com/badges/image/atmoz/sftp:alpine.svg

For now you'll need to edit the Markdown to add the tag. Also the link to the site will show the metadata for the latest tag. To see the metadata for other tags you'll need to select them in the dropdown.

Website support for tags in the URL will be coming soon. I'll leave this issue open till then.

atmoz commented 8 years ago

Great! I've added badges to my images :+1:

lizrice commented 7 years ago

This is now supported in the UI too so it's easy to grab the badges for the tag you want