{"id":23067411,"url":"https://github.com/dinushchathurya/build-tag-push-action","last_synced_at":"2026-05-01T22:32:03.383Z","repository":{"id":65155440,"uuid":"564751098","full_name":"dinushchathurya/build-tag-push-action","owner":"dinushchathurya","description":":octocat: GitHub Action to Login, Build, Tag \u0026 Publish Docker Images to Docker Registries","archived":false,"fork":false,"pushed_at":"2025-08-02T17:11:33.000Z","size":105,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-25T07:39:29.314Z","etag":null,"topics":["dinush","dinush-chathurya","dinushchathurya","docker","docker-build","docker-build-push","docker-build-tag-push","docker-github-action","docker-login","docker-login-build-tag-push","docker-push","github","github-actions","github-docker"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/docker-login-build-tag-push-action","language":"Shell","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/dinushchathurya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["dinushchathurya"],"patreon":"dinushchathurya"}},"created_at":"2022-11-11T12:14:01.000Z","updated_at":"2024-05-16T11:40:59.000Z","dependencies_parsed_at":"2025-07-25T20:33:12.298Z","dependency_job_id":"5986a921-4d2a-454a-97d8-416f0d7fb978","html_url":"https://github.com/dinushchathurya/build-tag-push-action","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"ad27e30a63a4eda80ad270b20fc5f710d2f343d7"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dinushchathurya/build-tag-push-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fbuild-tag-push-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fbuild-tag-push-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fbuild-tag-push-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fbuild-tag-push-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinushchathurya","download_url":"https://codeload.github.com/dinushchathurya/build-tag-push-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fbuild-tag-push-action/sbom","scorecard":{"id":343849,"data":{"date":"2025-08-11","repo":{"name":"github.com/dinushchathurya/build-tag-push-action","commit":"6189922618133070fbb0c7c9113bd5edfaeab785"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Info: Possibly incomplete results: error parsing shell code: not a valid test operator: $: entrypoint.sh:0","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating alpine:3.10 to alpine:3.10@sha256:451eee8bedcb2f029756dc3e9d73bab0e7943c1ac55cff3a4861c52a0fdd3e98","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T06:36:59.606Z","repository_id":65155440,"created_at":"2025-08-18T06:36:59.606Z","updated_at":"2025-08-18T06:36:59.606Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32515837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["dinush","dinush-chathurya","dinushchathurya","docker","docker-build","docker-build-push","docker-build-tag-push","docker-github-action","docker-login","docker-login-build-tag-push","docker-push","github","github-actions","github-docker"],"created_at":"2024-12-16T05:16:58.797Z","updated_at":"2026-05-01T22:32:03.353Z","avatar_url":"https://github.com/dinushchathurya.png","language":"Shell","funding_links":["https://github.com/sponsors/dinushchathurya","https://patreon.com/dinushchathurya"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/scrutinizer/build/g/dinushchathurya/build-tag-push-action/master\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/dinushchathurya/build-tag-push-action?include_prereleases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/dinushchathurya/build-tag-push-action\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues-raw/dinushchathurya/build-tag-push-action\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/dependencies-up%20to%20date-orange\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/coverage-100%25-yellowgreen\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/rating-★★★★★-brightgreen\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/uptime-100%25-brightgreen\"\u003e\n\u003c/p\u003e\n\n## GitHub Action to Login, Build, Tag \u0026 Publish Docker Images to Docker Registries\n\nThis action allow you to login, build, tag \u0026 publish Docker image to a Docker Registries.\n\n## Usage\n\n\n#### DockerHub\n```yaml\non: [push]\n\njobs:\n  docker-build-tag-push:\n    runs-on: ubuntu-latest\n    name: Docker Build, Tag \u0026 Publish\n    steps:\n      - name: Build, Tag \u0026 Publish Image to DockerHub\n        uses: dinushchathurya/build-tag-push-action@v1.2.1\n        with:\n          username: ${{ secrets.DOCKER_USERNAME }}\n          password: ${{ secrets.DOCKER_PASSWORD }}\n          context: .\n          file: Dockerfile\n          repoOwner: ${{ secrets.DOCKER_USERNAME }}\n          repository:  nodejs-docker\n          tag: 1.0.0\n```\n\n#### GitHub Container Registry\n\n```yaml\non: [push]\n\njobs:\n  docker-build-tag-push:\n    runs-on: ubuntu-latest\n    name: Docker Build, Tag \u0026 Publish\n    steps:\n      - name: Docker Login, Build, Tag and Push to GitHub Container Registry\n        uses: dinushchathurya/build-tag-push-action@v1.2.1\n        with:\n          username: ${{ github.actor }}\n          password: ${{ secrets.TOKEN }}\n          context: .\n          file: Dockerfile\n          repoOwner: ${{ github.actor }}\n          repository: nodejs-github\n          tag: 1.0.0\n          registry: ghcr.io\n```\n\n## Secrets\n\nSetup the following secrets in your repository settings:\n\n\u003cb\u003esettings-\u003esecrets-\u003eactions-\u003eNew repository secret\u003c/b\u003e\u003cbr\u003e\u003cbr\u003e\n#### DockerHub\n\n|      Name       |      Value       |  Required  | \n|-----------------|------------------| ---------- |\n| DOCKER_USERNAME | Docker username  |    True    |\n| DOCKER_PASSWORD | Docker password  |    True    |\n\n#### GitHub Container Registry\n\n|      Name       |      Value       |  Required  | \n|-----------------|------------------| ---------- |\n|      TOKEN      | GitHub PAT       |    True    |\n\n## Inputs\n\n#### DockerHub\n\n| Name       |          Description        | Required |\n|------------|-----------------------------| -------- |\n| context    | Docker build context        | True     |\n| file       | Docker build file           | True     |\n| repoOwner  | Docker Hub repository owner | True     |\n| repository | Docker Hub repository name  | True     |\n| tag        | Image tag                   | True     |\n\n#### GitHub Container Registry\n\n| Name       |          Description     | Required |\n|------------|--------------------------| -------- |\n| context    | Docker build context     | True     |\n| file       | Docker build file        | True     |\n| repoOwner  | GitHub CR owner          | True     |\n| repository | GitHub CR repository name| True     |\n| tag        | Image tag                | True     |\n| registry   | GitHub registry          | True     |\n\n## Supported Docker Registries\n\n\n\u003cli\u003eDocker Hub\u003c/li\u003e\n\u003cli\u003eGitHub Container Registry (\u003cspan class=\"color-fg-attention\"\u003e\u003csvg class=\"octicon octicon-alert mr-2\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z\"\u003e\u003c/path\u003e\u003c/svg\u003eWarning\u003c/span\u003e From version 1.2.0)\u003c/li\u003e\n\n## Example\n\nYou can find a working example for this GitHub Action from the [following repository](https://github.com/dinushchathurya/build-tag-push-action-example).\n\n## Troubleshooting\n\nFor troubleshooting \u0026 get technical support, please head over to \u003ca href=\"https://github.com/dinushchathurya/build-tag-push-action/discussions\"\u003eDiscussions section\u003c/a\u003e.\n\n## Author\n\nAuthor [Dinush Chathurya](https://dinushchathurya.github.io/)\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nCopyright (c) 2022 \u003ca href=\"https://dinushchathurya.github.io/\"\u003eDinush Chathurya\u003c/a\u003e and \u003ca href=\"https://codingtricks.io/\"\u003ecodingtricks.io\u003c/a\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinushchathurya%2Fbuild-tag-push-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinushchathurya%2Fbuild-tag-push-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinushchathurya%2Fbuild-tag-push-action/lists"}