{"id":19358363,"url":"https://github.com/paritytech/build-n-push-action","last_synced_at":"2026-03-02T19:10:49.062Z","repository":{"id":257935676,"uuid":"865951702","full_name":"paritytech/build-n-push-action","owner":"paritytech","description":"GitHub Action is designed to build a Docker image from a specified Dockerfile and, optionally, push it to a Docker registry.","archived":false,"fork":false,"pushed_at":"2025-04-23T13:53:59.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-15T15:33:59.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paritytech.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-01T11:54:38.000Z","updated_at":"2025-04-23T13:54:04.000Z","dependencies_parsed_at":"2025-11-16T19:01:50.304Z","dependency_job_id":null,"html_url":"https://github.com/paritytech/build-n-push-action","commit_stats":null,"previous_names":["paritytech/build-n-push-action"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paritytech/build-n-push-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fbuild-n-push-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fbuild-n-push-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fbuild-n-push-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fbuild-n-push-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paritytech","download_url":"https://codeload.github.com/paritytech/build-n-push-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fbuild-n-push-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30016508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T17:00:27.440Z","status":"ssl_error","status_checked_at":"2026-03-02T17:00:03.402Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10T07:11:24.757Z","updated_at":"2026-03-02T19:10:49.013Z","avatar_url":"https://github.com/paritytech.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build Action\n\nThis GitHub Action is designed to build a Docker image from a specified Dockerfile and, optionally, push it to a Docker registry.\n\n## Usage\n\nTo use this action in your workflow, add the following step to your GitHub Actions workflow file (e.g., `.github/workflows/build.yml`):\n\n```yaml\n- name: Build and Push Docker Image\n  uses: paritytech/build-n-push-action@main\n  with:\n    push_to_registry: \"true\" # or 'false' if you do not wish to push (for example if you testing build without pushing to registry)\n    registry_user: ${{ secrets.REGISTRY_USER }}\n    registry_password: ${{ secrets.REGISTRY_PASSWORD }}\n    registry_url: \"registry.parity.io/parity-internal/\" # optional, defaults to 'registry.parity.io/parity-internal/'\n    image_name: \"your-image-name\" # optional, defaults to GitHub repository\n    image_tags: \"latest v1.3.0\"\n    dockerfile_path: \"./path/to/Dockerfile\" # optional, defaults to './Dockerfile'\n    build_args: | # optional\n      ARG1=value1\n      ARG2=value2\n    context: \"./path/to/context\" # optional, defaults to '.'\n```\n\n## Inputs\n\n| Name                | Description                                                          | Required | Default                                                                  |\n| ------------------- | -------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------ |\n| `push_to_registry`  | Whether to push the image to registry ('true' or 'false' as string). | Yes      | N/A                                                                      |\n| `registry_user`     | Registry username (if push_to_registry is 'true').                   | No       | N/A                                                                      |\n| `registry_password` | Registry password (if push_to_registry is 'true').                   | No       | N/A                                                                      |\n| `registry_url`      | Registry url.                                                        | No       | 'registry.parity.io/parity-internal/'                                    |\n| `image_name`        | Image name.                                                          | No       | GitHub repository name                                                   |\n| `image_tags`        | Image tags.                                                          | No       | Either tag github.ref_name if triggered by tag or github.sha (space separated) |\n| `dockerfile_path`   | Dockerfile path.                                                     | No       | './Dockerfile'                                                           |\n| `build_args`        | Build arguments. Default includes VCS_REF and BUILD_DATE.            | No       | VCS_REF=${{ github.sha }}\u003cbr\u003eBUILD_DATE=$(date -u '+%Y-%m-%dT%H:%M:%SZ') |\n| `extra_args`        | Extra Build arguments.                                               | No       | Like --target layer_1                                                    |\n| `context`           | Build context.                                                       | No       | '.'                                                                      |\n\n## Outputs\n\n- `tag`: The tag of the built image.\n\n## Example Workflow\n\nHere's a complete example of a workflow using this action:\n\n```yaml\nname: Build and Deploy\n\non:\n  push:\n    branches: - main\n\njobs:\nbuild_and_push:\nruns-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n\n      - name: Build and Push Docker Image\n        uses: paritytech/build-n-push-action@main\n        with:\n          push_to_registry: \"true\"\n          registry_user: ${{ secrets.REGISTRY_USER }}\n          registry_password: ${{ secrets.REGISTRY_PASSWORD }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparitytech%2Fbuild-n-push-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparitytech%2Fbuild-n-push-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparitytech%2Fbuild-n-push-action/lists"}