hashicorp / docker-consul

Official Docker images for Consul.
Mozilla Public License 2.0
398 stars 238 forks source link

use oci spec pre-defined key for version #162

Closed alvin-huang closed 3 years ago

alvin-huang commented 3 years ago

https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys pre-defines org.opencontainers.image.version to use for versioning. consul-enterprise pre-release versions do not adhere quite to semver but the wording is MAY so this should suffice.

Outside of the versioning we do ourselves, if we want to keep the docker tag consistent with org.opencontainers.image.version and in line with semver, this is currently not possible due to https://github.com/docker/distribution/issues/1201 where docker tags cannot take +.