{"id":15638511,"url":"https://github.com/manusa/actions-publish-docker","last_synced_at":"2025-08-04T01:37:02.861Z","repository":{"id":40797215,"uuid":"206831818","full_name":"manusa/actions-publish-docker","owner":"manusa","description":"This GitHub action allows you to create and publish Docker images into a Docker registry.","archived":false,"fork":false,"pushed_at":"2023-01-06T02:07:59.000Z","size":1016,"stargazers_count":15,"open_issues_count":17,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-16T22:16:28.806Z","etag":null,"topics":["action","ci","docker","javascript"],"latest_commit_sha":null,"homepage":"https://www.marcnuri.com","language":"JavaScript","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/manusa.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}},"created_at":"2019-09-06T16:18:05.000Z","updated_at":"2024-03-18T17:43:29.000Z","dependencies_parsed_at":"2023-01-11T17:22:01.936Z","dependency_job_id":null,"html_url":"https://github.com/manusa/actions-publish-docker","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.02857142857142858,"last_synced_commit":"db938e45d2a3487e0eab9646e83550f554c17af3"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/manusa/actions-publish-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Factions-publish-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Factions-publish-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Factions-publish-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Factions-publish-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manusa","download_url":"https://codeload.github.com/manusa/actions-publish-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manusa%2Factions-publish-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268637874,"owners_count":24282426,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"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":["action","ci","docker","javascript"],"created_at":"2024-10-03T11:21:51.131Z","updated_at":"2025-08-04T01:37:02.802Z","avatar_url":"https://github.com/manusa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Publish to Docker GitHub Action\n===============================\n\n[\u003cimg src=\"https://github.com/manusa/actions-publish-docker/workflows/Main%20workflow/badge.svg\" /\u003e](https://github.com/manusa/actions-publish-docker/actions)\n\nThis GitHub action allows you to create and publish Docker images into a Docker registry.\n\n## Usage\n\n### Basic\n\n```yaml\nsteps:\n  - name: Checkout\n    uses: actions/checkout@v1\n  - run: commandToBuildYourProject.sh\n  - name: Dockerize\n    if: success()\n    uses: manusa/actions-publish-docker@v1.1.2\n    with:\n      name: organization/image_name\n      username: ${{ secrets.DOCKER_HUB_USER }}\n      password: ${{ secrets.DOCKER_HUB_PASSWORD }}\n```\n\n### Required input parameters\n\n| Parameter  | Description                  |\n| ---------- | ---------------------------- |\n| `name`     | Name of the Docker image     |\n| `username` | Username for Docker registry |\n| `password` | Password for Docker registry |\n\nBy default the published image will be tagged using the git branch or tag name (`master` branch\nwill be tagged as `latest`).\n\n### Optional input parameters\n\n| Parameter               | Description                                                                                                                                                             |\n| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `tag`                   | Tag for the Docker image                                                                                                                                                |\n| `tag script`            | Script to compute tag name for the Docker image, receives `context` as a variable. Ignored if used together with `tag` parameter                                        |\n| `registry`              | URL for the Docker registry to login                                                                                                                                    |\n| `include pull requests` | By default (to avoid accidents) action is ignored in pull requests. This parameter will force publishing the image even if the action was triggered from a pull request |\n| `dockerfile path`       | By default the path to the `Dockerfile` is `.`, this parameter lets you change this.                                                                                    |\n\n### Advanced\n\n```yaml\nsteps:\n  - name: Checkout\n    uses: actions/checkout@v1\n  - run: commandToBuildYourProject.sh\n  - name: Dockerize\n    if: success()\n    uses: manusa/actions-publish-docker@v1.1.2\n    with:\n      name: organization/image_name\n      username: ${{ secrets.DOCKER_HUB_USER }}\n      password: ${{ secrets.DOCKER_HUB_PASSWORD }}\n      tag script: |\n        return context.ref\n          .replace('refs/heads/\n          .replace('refs/tags/'\n          .replace('refs/pull/'\n          .replace(/\\//g, '_')\n          .replace(/#/g, '');\n      registry: localhost:5000\n```\n\n## License\n\nThe scripts and documentation in this project are released under the [Apache 2.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanusa%2Factions-publish-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanusa%2Factions-publish-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanusa%2Factions-publish-docker/lists"}