{"id":20961402,"url":"https://github.com/perbu/docker-semver-generator","last_synced_at":"2026-07-17T01:31:31.287Z","repository":{"id":143067658,"uuid":"321093012","full_name":"perbu/docker-semver-generator","owner":"perbu","description":"Generate docker tags for semver","archived":false,"fork":false,"pushed_at":"2020-12-13T15:30:28.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T04:46:29.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-13T15:11:23.000Z","updated_at":"2020-12-13T15:30:31.000Z","dependencies_parsed_at":"2023-04-13T00:04:22.619Z","dependency_job_id":null,"html_url":"https://github.com/perbu/docker-semver-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perbu/docker-semver-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdocker-semver-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdocker-semver-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdocker-semver-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdocker-semver-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/docker-semver-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdocker-semver-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35563613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T02:03:51.041Z","updated_at":"2026-07-17T01:31:31.257Z","avatar_url":"https://github.com/perbu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate semver tags for docker images\n\nSemver is nice. The somewhat tricky part is allowing a service to be pinned to a specific MAJOR version \nand then tagging your released docker images accordingly.\n \nGiven we have the following tags in our repo:\n * `0.1.0`\n * `0.2.0`\n * `0.3.0`\n \nAnd we then build `0.2.1` - what tags should be applied?\n \nThis tools tries to generate those tags. It'll spit out:\n  `0.2` and `0.2.1`. It will not touch the `0` tag as this should still point to `0.3.0`.\n  \nSo, in your kubernetes defintions you might then deploy $ARTFACT:0.2 and you'll get updates for the 0.2\nbranch.\n\nHandling of `latest` is so simple that you don't need any tooling. The tricky bits are sticking on a MAJOR \nor MINOR version.\n\nThe regular expression used is taken from semver.org. \n\n\n## Usage\nFind a way to get a hold of your current tags. \n\n ```shell script\n $ cat EXISTING_TAGS | python3 semver-tag.py 0.2.1 \n ```\nComplete:\n```\necho \"0.1.0\n0.2.0\n0.3.0\" | python3 semver-tag.py 0.2.1\n0.2.1 0.2\n```\nI'm using this to in the scripts that apply tags.\n\nYou'll need to integrate this with your registry somehow.\n\nNote that this tool hasn't been given much testing. However, as I found nothing like it I thought it might make\nsense to publish it. File and issue if you have any comments.\n\n### Bugs and weird stuff:\n\nIronically there is no versioning of this script. I suggest you copy and adapt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fdocker-semver-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Fdocker-semver-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fdocker-semver-generator/lists"}