Go to file
renovate[bot] e9e2914137
chore(deps): lock file maintenance (#56)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-21 09:23:20 +02:00
.chglog chore: improve generated changelog (#40) 2021-05-09 23:18:58 +02:00
.github [skip ci] fix github settings syntax 2021-05-25 18:01:04 +02:00
docker chore(deps): update arm64v8/python:3.9-alpine docker digest 2021-05-27 15:18:08 +00:00
dockerautotag fix comment syntax 2021-01-09 12:28:53 +01:00
.drone.jsonnet chore: improve generated changelog (#40) 2021-05-09 23:18:58 +02:00
.drone.yml chore: improve generated changelog (#40) 2021-05-09 23:18:58 +02:00
.gitignore ci: auto-generate changelog (#29) 2021-03-23 21:08:32 +01:00
.prettierignore chore: improve generated changelog (#40) 2021-05-09 23:18:58 +02:00
CONTRIBUTING.md docs: add contributing information 2021-01-03 15:29:09 +01:00
LICENSE [skip ci] update year in license file 2021-01-03 21:40:25 +01:00
poetry.lock chore(deps): lock file maintenance (#56) 2021-06-21 09:23:20 +02:00
pyproject.toml chore(deps): update dependency pytest-cov to v2.12.1 2021-06-01 19:39:55 +00:00
README.md fix ci badge 2021-01-17 15:23:47 +01:00
renovate.json chore: use renovate preset config 2021-01-03 15:26:19 +01:00
setup.cfg chore: disable rule D105 in flake 2021-06-09 20:59:01 +02:00

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. If you would like to contribute, please see the instructions.

License

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