docker-autotag


Namedocker-autotag JSON
Version 3.0.0 PyPI version JSON
download
home_pagehttps://github.com/thegeeklab/docker-autotag/
SummaryCreates a list of docker tags from a given version string.
upload_time2024-11-08 22:30:31
maintainerNone
docs_urlNone
authorRobert Kaussow
requires_python<4.0.0,>=3.10.0
licenseMIT
keywords docker versioning automation ci
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # docker-autotag

Create docker tags from a given version string

[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/docker-autotag/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/docker-autotag)
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/docker-autotag)
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/docker-autotag)
[![Python Version](https://img.shields.io/pypi/pyversions/docker-autotag.svg)](https://pypi.org/project/docker-autotag/)
[![PyPi Status](https://img.shields.io/pypi/status/docker-autotag.svg)](https://pypi.org/project/docker-autotag/)
[![PyPi Release](https://img.shields.io/pypi/v/docker-autotag.svg)](https://pypi.org/project/docker-autotag/)
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/docker-autotag)](https://github.com/thegeeklab/docker-autotag/graphs/contributors)
[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/thegeeklab/docker-autotag)
[![License: MIT](https://img.shields.io/github/license/thegeeklab/docker-autotag)](https://github.com/thegeeklab/docker-autotag/blob/main/LICENSE)

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

## Environment variables

```Shell
# 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=
# returns only tags with the applied suffix
DOCKER_AUTOTAG_SUFFIX_STRICT=False
# 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

```Shell
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_SUFFIX=amd64 DOCKER_AUTOTAG_SUFFIX_STRICT=True DOCKER_AUTOTAG_VERSION=1.0.0 docker-autotag
# 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 to all [contributors](https://github.com/thegeeklab/docker-autotag/graphs/contributors). If you would like to contribute,
please see the [instructions](https://github.com/thegeeklab/docker-autotag/blob/main/CONTRIBUTING.md).

## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/thegeeklab/docker-autotag/blob/main/LICENSE) file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thegeeklab/docker-autotag/",
    "name": "docker-autotag",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.10.0",
    "maintainer_email": null,
    "keywords": "docker, versioning, automation, ci",
    "author": "Robert Kaussow",
    "author_email": "mail@thegeeklab.de",
    "download_url": "https://files.pythonhosted.org/packages/0b/32/2ac861d7cc2f5871d921fd13a73ddb448e539cae4413aca19badb556336a/docker_autotag-3.0.0.tar.gz",
    "platform": null,
    "description": "# docker-autotag\n\nCreate docker tags from a given version string\n\n[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/docker-autotag/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/docker-autotag)\n[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/docker-autotag)\n[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/docker-autotag)\n[![Python Version](https://img.shields.io/pypi/pyversions/docker-autotag.svg)](https://pypi.org/project/docker-autotag/)\n[![PyPi Status](https://img.shields.io/pypi/status/docker-autotag.svg)](https://pypi.org/project/docker-autotag/)\n[![PyPi Release](https://img.shields.io/pypi/v/docker-autotag.svg)](https://pypi.org/project/docker-autotag/)\n[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/docker-autotag)](https://github.com/thegeeklab/docker-autotag/graphs/contributors)\n[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/thegeeklab/docker-autotag)\n[![License: MIT](https://img.shields.io/github/license/thegeeklab/docker-autotag)](https://github.com/thegeeklab/docker-autotag/blob/main/LICENSE)\n\nSimple tool to create a list of docker tags from a given version string.\n\n## Environment variables\n\n```Shell\n# if not set a comma-separated list will be printed to stdout\nDOCKER_AUTOTAG_OUTPUT_FILE=\n# adds a given suffix to every determined tag\nDOCKER_AUTOTAG_SUFFIX=\n# returns only tags with the applied suffix\nDOCKER_AUTOTAG_SUFFIX_STRICT=False\n# version string to use; returns 'latest' if nothing is specified\nDOCKER_AUTOTAG_VERSION=\n# comma-seprated list of static tags to add to the result set\nDOCKER_AUTOTAG_EXTRA_TAGS=\n# 'latest' tag would only be used if determined tag list is empty; adds always 'latest' to the result\nDOCKER_AUTOTAG_FORCE_LATEST=False\n# if the given version string contains a prerelease, no other tags will be returned\nDOCKER_AUTOTAG_IGNORE_PRERELEASE=False\n```\n\n## Examples\n\n```Shell\nDOCKER_AUTOTAG_VERSION=1.0.1 docker-autotag\n# 1.0.1,1.0,1\n\nDOCKER_AUTOTAG_VERSION=0.1.0 docker-autotag\n# 0.1.0, 0.1\n\n## 'v' prefixes e.g. from git tags will be removed\nDOCKER_AUTOTAG_VERSION=v1.0.1 docker-autotag\n# 1.0.1,1.0,1\n\n## unsufficient semver version strings will be tried to convert automatically\n## if conversion doesn't work return 'latest'\nDOCKER_AUTOTAG_VERSION=1.0 docker-autotag\n# 1.0.0,1.0,1\n\nDOCKER_AUTOTAG_VERSION=1.0.0-beta docker-autotag\n# 1.0.0-beta\n\n## ignore prerelease to always get a full list of tags\nDOCKER_AUTOTAG_IGNORE_PRERELEASE=True DOCKER_AUTOTAG_VERSION=1.0.0-beta docker-autotag\n# 1.0.0-beta,1.0.0,1.0,1\n\nDOCKER_AUTOTAG_SUFFIX=amd64 DOCKER_AUTOTAG_VERSION=1.0.0 docker-autotag\n# 1.0.0,1.0,1,1.0.0-amd64,1.0-amd64,1-amd64\n\nDOCKER_AUTOTAG_SUFFIX=amd64 DOCKER_AUTOTAG_SUFFIX_STRICT=True DOCKER_AUTOTAG_VERSION=1.0.0 docker-autotag\n# 1.0.0-amd64,1.0-amd64,1-amd64\n\nDOCKER_AUTOTAG_EXTRA_TAGS=extra1,extra2 DOCKER_AUTOTAG_VERSION=1.0.0 docker-autotag\n# 1.0.0,1.0,1,extra1,extra2\n```\n\n## Contributors\n\nSpecial thanks to all [contributors](https://github.com/thegeeklab/docker-autotag/graphs/contributors). If you would like to contribute,\nplease see the [instructions](https://github.com/thegeeklab/docker-autotag/blob/main/CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/thegeeklab/docker-autotag/blob/main/LICENSE) file for details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Creates a list of docker tags from a given version string.",
    "version": "3.0.0",
    "project_urls": {
        "Documentation": "https://github.com/thegeeklab/docker-autotag/",
        "Homepage": "https://github.com/thegeeklab/docker-autotag/",
        "Repository": "https://github.com/thegeeklab/docker-autotag/"
    },
    "split_keywords": [
        "docker",
        " versioning",
        " automation",
        " ci"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ab6c04289c7c01a7df82dfc61dd3bc2799408668cba1ea8e3ac8c8d20cf31aa",
                "md5": "d3bb5d58b502b6179f4d4617dad0ce7e",
                "sha256": "52353647e5aa42f52313f72dac719456c09c5b0da5372f5224c0d1b4f9e24b4a"
            },
            "downloads": -1,
            "filename": "docker_autotag-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d3bb5d58b502b6179f4d4617dad0ce7e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.10.0",
            "size": 7868,
            "upload_time": "2024-11-08T22:30:29",
            "upload_time_iso_8601": "2024-11-08T22:30:29.441070Z",
            "url": "https://files.pythonhosted.org/packages/3a/b6/c04289c7c01a7df82dfc61dd3bc2799408668cba1ea8e3ac8c8d20cf31aa/docker_autotag-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0b322ac861d7cc2f5871d921fd13a73ddb448e539cae4413aca19badb556336a",
                "md5": "83fb7d4bae0962b47eb9dc6ff3698dc0",
                "sha256": "2f5113401d4a622e33fe7df3775996099c8c30e1665076d15c0e33a9da17950e"
            },
            "downloads": -1,
            "filename": "docker_autotag-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "83fb7d4bae0962b47eb9dc6ff3698dc0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.10.0",
            "size": 6299,
            "upload_time": "2024-11-08T22:30:31",
            "upload_time_iso_8601": "2024-11-08T22:30:31.232471Z",
            "url": "https://files.pythonhosted.org/packages/0b/32/2ac861d7cc2f5871d921fd13a73ddb448e539cae4413aca19badb556336a/docker_autotag-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-08 22:30:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thegeeklab",
    "github_project": "docker-autotag",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "docker-autotag"
}
        
Elapsed time: 4.43153s