Go to file
Robert Kaussow 065c346e19
[skip ci] prepare release
2020-09-24 20:42:36 +02:00
.github update description 2020-09-22 22:41:00 +02:00
bin initial commit 2020-05-03 23:42:52 +02:00
docker migrate to thegeeklab orga 2020-09-21 21:59:13 +02:00
dockerautotag [skip ci] prepare release 2020-09-24 20:42:36 +02:00
.drone.jsonnet update description 2020-09-22 22:41:00 +02:00
.drone.yml update description 2020-09-22 22:42:25 +02:00
.flake8 initial commit 2020-05-03 23:42:52 +02:00
.gitignore initial commit 2020-05-03 23:42:52 +02:00
CHANGELOG.md migrate to thegeeklab orga 2020-09-21 21:59:13 +02:00
LICENSE initial commit 2020-05-03 23:42:52 +02:00
README.md update description 2020-09-22 22:41:00 +02:00
dev-requirements.txt initial commit 2020-05-03 23:42:52 +02:00
setup.cfg initial commit 2020-05-03 23:42:52 +02:00
setup.py initial commit 2020-05-03 23:42:52 +02:00

README.md

docker-autotag

Create docker tags from a given version string

Build Status Docker Hub Quay.io Python Version PyPi Status PyPi Release GitHub contributors Source: GitHub License: MIT

Simple tool to create a list of docker tags from a given version string.

Environment variables

# if not set a comma-separated list will be printed to stdout
DOCKER_AUTOTAG_OUTPUT_FILE=
# adds a given suffix to every determined tag
DOCKER_AUTOTAG_SUFFIX=
# version string to use; returns 'latest' if nothing is specified
DOCKER_AUTOTAG_VERSION=
# comma-seprated list of static tags to add to the result set
DOCKER_AUTOTAG_EXTRA_TAGS=
# 'latest' tag would only be used if determined tag list is empty; adds always 'latest' to the result
DOCKER_AUTOTAG_FORCE_LATEST=False
# if the given version string contains a prerelease, no other tags will be returned
DOCKER_AUTOTAG_IGNORE_PRERELEASE=False

Examples

DOCKER_AUTOTAG_VERSION=1.0.1 docker-autotag
# 1.0.1,1.0,1

DOCKER_AUTOTAG_VERSION=0.1.0 docker-autotag
# 0.1.0, 0.1

## 'v' prefixes e.g. from git tags will be removed
DOCKER_AUTOTAG_VERSION=v1.0.1 docker-autotag
# 1.0.1,1.0,1

## unsufficient semver version strings will be tried to convert automatically
## if conversion doesn't work return 'latest'
DOCKER_AUTOTAG_VERSION=1.0 docker-autotag
# 1.0.0,1.0,1

DOCKER_AUTOTAG_VERSION=1.0.0-beta docker-autotag
# 1.0.0-beta

## ignore prerelease to always get a full list of tags
DOCKER_AUTOTAG_IGNORE_PRERELEASE=True DOCKER_AUTOTAG_VERSION=1.0.0-beta docker-autotag
# 1.0.0-beta,1.0.0,1.0,1

DOCKER_AUTOTAG_SUFFIX=amd64 DOCKER_AUTOTAG_VERSION=1.0.0 docker-autotag
# 1.0.0,1.0,1,1.0.0-amd64,1.0-amd64,1-amd64

DOCKER_AUTOTAG_EXTRA_TAGS=extra1,extra2 DOCKER_AUTOTAG_VERSION=1.0.0 docker-autotag
# 1.0.0,1.0,1,extra1,extra2

Contributors

Special thanks goes to all contributors.

License

This project is licensed under the MIT License - see the LICENSE file for details.