{"id":21273270,"url":"https://github.com/sclorg/build-and-push-action","last_synced_at":"2026-03-14T22:33:30.058Z","repository":{"id":39586121,"uuid":"459573900","full_name":"sclorg/build-and-push-action","owner":"sclorg","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-25T14:23:37.000Z","size":35,"stargazers_count":0,"open_issues_count":4,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-30T00:32:02.492Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sclorg.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}},"created_at":"2022-02-15T12:42:45.000Z","updated_at":"2024-03-11T08:52:47.000Z","dependencies_parsed_at":"2023-01-04T12:18:42.981Z","dependency_job_id":"bf5e026c-298d-464b-bd16-868b7dafeeb8","html_url":"https://github.com/sclorg/build-and-push-action","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.26315789473684215","last_synced_commit":"8f488e6fae4bc71bd1131abcf320d551c6ccd687"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuild-and-push-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuild-and-push-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuild-and-push-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuild-and-push-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclorg","download_url":"https://codeload.github.com/sclorg/build-and-push-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225700924,"owners_count":17510448,"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":[],"created_at":"2024-11-21T09:13:16.312Z","updated_at":"2026-03-14T22:33:25.018Z","avatar_url":"https://github.com/sclorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Build and Push GitHub Action\n\nThe action builds a container image and pushes it to the specified registry.\nThe path to upload the image is constructed from inputs as follows:\n```\nregistry/registry_namespace/image_name\n```\n\n## Action Inputs\n\n### Registry information\n\n| Input Name | Description | Default value |\n|------------|-------------|---------------|\n| `registry` | Registry to push container image to. | **required**  |\n| `registry_namespace` | Namespace of the registry, where the image would be pushed. | **required**  |\n| `registry_username` | Login to specified registry. | **required**  |\n| `registry_token` | Access token to specified registry. | **required**  |\n\n### Build information\n\n| Input Name | Description | Default value |\n|------------|-------------|---------------|\n| `image_name` | Name of the built image. | **required** |\n| `tag` | Tag of the built image. | \"\" |\n| `use_default_tags` | Add default tags to image - SHA, latest, current date | true |\n| `archs` | Label the image with this architecture. For multiple architectures, seperate them by a comma. | amd64 |\n| `dockerfile` | Dockerfile and its relative path to build the image. | Dockerfile |\n| `docker_context` | Docker build context. | . |\n\n### Other information\n\n| Input Name | Description | Default value |\n|------------|-------------|---------------|\n| `readme` | If path to readme is set, the readme is updated to the registry. Only quay.io is supported. | \"\" |\n| `quay_application_token` | Application token is used for updating description for image. | \"\" |\n\n\n\n## Example\n\nThe example below shows how the `sclorg/build-and-push-action` can be used.\n\n```yaml\nname: Build and push to quay.io registry\non:\n  push:\n    branches:\n      - main\n\njobs:\n  build-and-push:\n    runs-on: ubuntu-20.04\n    steps:\n      - name: Build and push to quay.io registry\n        uses: sclorg/build-and-push-action@v2\n        with:\n          registry: \"quay.io\"\n          registry_namespace: \"namespace\"\n          registry_username: ${{ secrets.REGISTRY_LOGIN }}\n          registry_token: ${{ secrets.REGISTRY_TOKEN }}\n          dockerfile: \"1.20/Dockerfile\"\n          image_name: \"container_image-1.20\"\n          tag: \"tag\"\n```\n\n## Multi arch builds\nInput `archs` is provided to build the multi architecture images. `archs` input should be comma separated ( i.e. `archs: \"amd64, s390x\"` ). It is an optional argument, if not provided image will be built on amd64 i.e. default arch\n\nThe example below shows how the `sclorg/build-and-push-action` can be used for multi-arch image \n\n```yaml\nname: Build and push to quay.io registry\non:\n  push:\n    branches:\n      - main\n\njobs:\n  build-and-push:\n    runs-on: ubuntu-20.04\n    steps:\n      - name: Build and push to quay.io registry\n        uses: sclorg/build-and-push-action@v2\n        with:\n          registry: \"quay.io\"\n          registry_namespace: \"namespace\"\n          registry_username: ${{ secrets.REGISTRY_LOGIN }}\n          registry_token: ${{ secrets.REGISTRY_TOKEN }}\n          dockerfile: \"1.20/Dockerfile\"\n          image_name: \"container_image-1.20\"\n          tag: \"tag\"\n          archs: \"amd64, s390x\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fbuild-and-push-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclorg%2Fbuild-and-push-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fbuild-and-push-action/lists"}