{"id":16830472,"url":"https://github.com/glensc/docker-create-tag","last_synced_at":"2026-04-12T05:31:19.006Z","repository":{"id":138591447,"uuid":"152622597","full_name":"glensc/docker-create-tag","owner":"glensc","description":"Create Docker image tag using Registry v2 API","archived":false,"fork":false,"pushed_at":"2019-10-23T10:08:40.000Z","size":15,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T22:52:13.530Z","etag":null,"topics":["api","bash","bash-script","cli","curl","docker","gitlab","image","registry","sh","shell","tag","v2"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glensc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-11T16:28:31.000Z","updated_at":"2020-07-16T16:02:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c650a68d-edd6-4d97-9fea-a537cf61d358","html_url":"https://github.com/glensc/docker-create-tag","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/glensc/docker-create-tag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fdocker-create-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fdocker-create-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fdocker-create-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fdocker-create-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glensc","download_url":"https://codeload.github.com/glensc/docker-create-tag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fdocker-create-tag/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502387,"owners_count":23618587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","bash","bash-script","cli","curl","docker","gitlab","image","registry","sh","shell","tag","v2"],"created_at":"2024-10-13T11:39:09.952Z","updated_at":"2025-12-30T22:13:20.300Z","avatar_url":"https://github.com/glensc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create Docker image tag using Registry v2 API\n\nCreates docker registry tags without requiring locally running Docker Daemon using Docker Registry v2 API.\n\nThis is known to work within same registry server.\n\nTested with GitLab CI:\n\n```yml\nvariables:\n  CONTAINER_BUILD_IMAGE: $CI_REGISTRY_IMAGE/builds:$CI_PIPELINE_ID-$CI_COMMIT_REF_SLUG\n  CONTAINER_PRODUCTION_IMAGE: $CI_REGISTRY_IMAGE/production:$CI_PIPELINE_ID-$CI_COMMIT_REF_SLUG\n\ndeploy:\n  when: manual\n  script:\n    - docker-create-tag -u gitlab-ci-token -p $CI_JOB_TOKEN $CONTAINER_BUILD_IMAGE $CONTAINER_PRODUCTION_IMAGE\n```\nAlternatively, you can rely on `docker login` storing credentials to `~/.docker/config.json`\n\n```yml\n  script:\n    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY\n    - docker-create-tag $CONTAINER_BUILD_IMAGE $CONTAINER_PRODUCTION_IMAGE\n```\n\n## History\n\nThis project was created due [reg] tool [lacking the support][reg#88].\n\n[reg]: https://github.com/genuinetools/reg\n[reg#88]: https://github.com/genuinetools/reg/issues/88\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fdocker-create-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglensc%2Fdocker-create-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fdocker-create-tag/lists"}