The latest version of the docker plugin includes a new default_tags flag that can be used to automatically tag your images. It is an optional, opt-in feature and can be used to simplify your configuration. The logic is pretty basic at the moment:
Use latest tag for push events
Use git tag for tag events
The git tags should following semantic version naming conventions. The plugin will parse the git tag and publish a tagged docker image for each major, minor and patch version. For example:
git tag v1.9.2 will publish docker tags 1, 1.9 and 1.9.2
git tag v1.9.2-alpha.1 will publish docker tag 1.9.2-alpha.1
This allows us to combine two separate publish steps into a single step:
This is just an initial implementation, however, I hope that it will be helpful and is something we can improve over time. Planned improvements include automated tags for pushes to non-master branches.
I should also mention that in some cases you may want to add a suffix to your tags. This is especially useful when building images for multiple architectures. For example we may want to use the following tag scheme for windows images:
I think the downstream ECR plugin might be broken because of this
This change did not impact the ECR plugin. The ECR plugin was recently changes and moved to the core drone-plugin repository. These changes may have included breaking changes, although I am not certain. Feel free to discuss ECR changes in the relevant thread https://github.com/drone-plugins/drone-docker/pull/155
@ktruckenmiller do you have any example yaml config, version, or other data you can provide? I’m looking for some clarity to make sure your issue is resolved.
And then I noticed the docker hub container had been updated around the time I was redeploying. It was just an exit code of 1. I recently updated my drone docker daemon to 17.09 so that might have something to do with this as well.