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

Fix docker latest and master tags #1213

Merged
merged 1 commit into from
Oct 30, 2019
Merged

Conversation

slim-bean
Copy link
Collaborator

Fixes #1087

I couldn't just add the latest and master tags directly to the .tags file for multi-arch images because it resulted in drone/docker creating and pushing a latest and master for each architecture which then interferes with the manifest.

So instead I just added the latest and master tags to the template for the manifest generation.

FYI if anyone is curious how this drone manifest plugin actually works, it's just a thin wrapper around: https://github.com/estesp/manifest-tool, which is what the template file definition is based on.

For the fluent-bit image which is only built for amd64 and doesn't push a manifest file, I extended the jsonnet function which creates the image-tag step to accept an optional list of comma separated tags to put into the .tags file which is then used by the drone docker plugin to push images with those tags.

This allows pushing a latest and master tag for the fluent-bit image

…r images

for single arch images allow passing additional tags into the image-tag step and into .tags file
@slim-bean slim-bean requested a review from sh0rez October 29, 2019 22:23
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 38d803a into master Oct 30, 2019
@rfratto rfratto deleted the fix-latest-master-tags branch November 1, 2019 12:10
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.

Fix Docker Hub tags for Loki
2 participants