{"id":17967207,"url":"https://github.com/meysam81/build-docker","last_synced_at":"2025-04-11T08:18:15.606Z","repository":{"id":259361763,"uuid":"877672469","full_name":"meysam81/build-docker","owner":"meysam81","description":"A shorthand GitHub Action for building Docker and pushing to ghcr.io and other repositories. An smaller alternative to combining qemu and other steps.","archived":false,"fork":false,"pushed_at":"2025-03-31T17:44:14.000Z","size":175,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:36:06.292Z","etag":null,"topics":["automation","buildx","ci-cd","composite-action","container-image","container-registry","container-security","devops","docker","docker-build","docker-push","docker-scout","dockerhub","ghcr","github-action","github-actions","kubescape","multi-platform","security-scanning","vulnerability-scanning"],"latest_commit_sha":null,"homepage":"","language":null,"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/meysam81.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},"funding":{"github":["meysam81"]}},"created_at":"2024-10-24T03:32:42.000Z","updated_at":"2025-03-15T11:04:23.000Z","dependencies_parsed_at":"2024-10-24T21:04:31.199Z","dependency_job_id":"7128f0c9-f12d-48b7-9c83-aaa374f6af9e","html_url":"https://github.com/meysam81/build-docker","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"3ac39fd485591fcc443e95746eb33c0b86195255"},"previous_names":["meysam81/build-docker"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fbuild-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fbuild-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fbuild-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fbuild-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meysam81","download_url":"https://codeload.github.com/meysam81/build-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360720,"owners_count":21090746,"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":["automation","buildx","ci-cd","composite-action","container-image","container-registry","container-security","devops","docker","docker-build","docker-push","docker-scout","dockerhub","ghcr","github-action","github-actions","kubescape","multi-platform","security-scanning","vulnerability-scanning"],"created_at":"2024-10-29T14:04:33.838Z","updated_at":"2025-04-11T08:18:15.600Z","avatar_url":"https://github.com/meysam81.png","language":null,"funding_links":["https://github.com/sponsors/meysam81"],"categories":[],"sub_categories":[],"readme":"# build-docker\n\n[![GitHub Release](https://img.shields.io/github/v/release/meysam81/build-docker)](https://github.com/meysam81/build-docker/releases/latest)\n[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://developer.mend.io/github/meysam81/build-docker)\n[![GitHub last commit](https://img.shields.io/github/last-commit/meysam81/build-docker)](https://github.com/meysam81/build-docker/commits/main)\n[![License](https://img.shields.io/github/license/meysam81/build-docker)](https://github.com/meysam81/build-docker/blob/main/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/meysam81/build-docker)](https://github.com/meysam81/build-docker/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/meysam81/build-docker)](https://github.com/meysam81/build-docker/pulls)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Features](#features)\n- [Usage](#usage)\n- [Inputs](#inputs)\n- [Outputs](#outputs)\n- [Example](#example)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\nA GitHub composite action that simplifies Docker image building, pushing, and scanning. It combines Docker build, push, metadata handling, Scout scanning, and Kubescape security analysis into a single action.\n\n## Features\n\n- Multi-platform builds (amd64/arm64)\n- GitHub Container Registry integration\n- Docker Hub support\n- Docker Scout vulnerability scanning\n- Kubescape security analysis\n- GitHub cache optimization\n- SARIF report generation\n\n## Usage\n\n```yaml\n- uses: meysam81/build-docker@v1\n  with:\n    image-name: ghcr.io/${{ github.repository }} # e.g. ghrc.io/octocat/hello-world\n```\n\n## Inputs\n\n| Name                     | Description                                                                           | Required | Default                   |\n| ------------------------ | ------------------------------------------------------------------------------------- | -------- | ------------------------- |\n| `image-name`             | Image name (including registry path)                                                  | Yes      | -                         |\n| `github-token`           | GitHub token for authentication                                                       | Yes      | `${{ github.token }}`     |\n| `build-args`             | Docker build arguments                                                                | No       | `\"\"`                      |\n| `context`                | Build context path                                                                    | No       | `.`                       |\n| `dockerhub-username`     | Docker Hub username (required when `scout-cves` or `scout-compare` is enabled)        | No       | `\"\"`                      |\n| `dockerhub-password`     | Docker Hub password (required when `scout-cves` or `scout-compare` is enabled)        | No       | `\"\"`                      |\n| `image-extra-tags`       | Additional image tags                                                                 | No       | `\"\"`                      |\n| `image-target`           | Multi-stage build target                                                              | No       | `\"\"`                      |\n| `platforms`              | Build platforms                                                                       | No       | `linux/amd64,linux/arm64` |\n| `push`                   | Push to registry (requires `packages: write`)                                         | No       | `true`                    |\n| `ref`                    | Git ref to checkout                                                                   | No       | `${{ github.ref }}`       |\n| `runner`                 | GitHub runner to use                                                                  | No       | `ubuntu-latest`           |\n| `scout-compare`          | Enable Docker Scout comparison                                                        | No       | `false`                   |\n| `scout-comment-pr`       | Add Scout results as PR comment (only in pull requests)                               | No       | `false`                   |\n| `scout-cves`             | Enable Docker Scout CVE scanning                                                      | No       | `false`                   |\n| `kubescape`              | Enable Kubescape scanning                                                             | No       | `false`                   |\n| `kubescape-upload-sarif` | Upload Kubescape SARIF results to GitHub Security (requires `security-events: write`) | No       | `false`                   |\n\n## Outputs\n\n| Name       | Description                      |\n| ---------- | -------------------------------- |\n| `digest`   | Image content-addressable digest |\n| `imageid`  | Built image ID                   |\n| `metadata` | Build result metadata            |\n\n## Example\n\n```yaml\nname: ci\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: meysam81/build-docker@v1\n        with:\n          image-name: ghcr.io/${{ github.repository }}\n          image-extra-tags: |\n            ghcr.io/${{ github.repository }}:${{ github.run_id }}\n          kubescape: true\n          kubescape-upload-sarif: true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeysam81%2Fbuild-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeysam81%2Fbuild-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeysam81%2Fbuild-docker/lists"}