nethermindeth/Build and Push Image
Build and push a docker/oci image to a registry
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 15, 2026
- License
- None
Pinned Snippet
uses: nethermindeth/github-action-image-build-and-push@adae43049bfe0d6ebcad11bb0a231c1de9873c1e # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| push-to-registry | Push to registry. Set to false if you want to only build the image and not push it. | no | true |
| registry | Either "dockerhub" or "artifactory" | yes | — |
| image_name | Name of the image | yes | — |
| image_tags | Tags for the image (comma-separated) | yes | — |
| platforms | Comma-separated list of platforms (e.g., linux/amd64,linux/arm64) | no | linux/amd64,linux/arm64 |
| context | Build's context is the set of files located in the specified PATH or URL | no | . |
| dockerfile_path | Path to Dockerfile | no | Dockerfile |
| setup-qemu | Set up QEMU | no | false |
| cache_from | List of external cache sources (e.g., type=local,src=path/to/dir) | no | type=gha |
| cache_to | List of cache export destinations (e.g., type=local,dest=path/to/dir) | no | type=gha,mode=max |
| secrets | List of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken) | no | "" |
| secret-envs | List of secret env vars to expose to the build (e.g., key=envname, MY_SECRET=MY_ENV_VAR) | no | "" |
| secret-files | List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt) | no | "" |
| ulimit | Ulimit options (e.g., nofile=1024:1024) | no | "" |
| build-args | List of build-time variables | no | "" |
| ignore_trivy | Ignore Trivy scan errors | no | false |
| run_trivy | Run Trivy scan | no | true |
Outputs
no outputs