cloudposse/Docker build and push
Simple Docker build and push action
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 19, 2026
- License
- Apache 2.0
Pinned Snippet
uses: cloudposse/github-action-docker-build-push@f06d0f4bd286898b613412d2fcc6622e5b68bbdc # v3.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| allow | List of extra privileged entitlement (e.g., network.host,security.insecure) | no | — |
| network | Set the networking mode for the RUN instructions during build | no | — |
| build-contexts | List of additional build contexts (e.g., name=path) | no | — |
| buildkitd-flags | BuildKit daemon flags | no | --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host |
| driver-opts | List of additional driver-specific options. (eg. image=moby/buildkit:master) | no | image=mirror.gcr.io/moby/buildkit:buildx-stable-1 |
| binfmt-image | Binfmt image | no | public.ecr.aws/eks-distro-build-tooling/binfmt-misc:qemu-v7.0.0 |
| workdir | Working directory | no | ./ |
| file | Dockerfile name | no | Dockerfile |
| build-args | List of build-time variables | no | — |
| organization | Organization | yes | — |
| repository | Repository | yes | — |
| registry | Docker registry | yes | — |
| target | Sets the target stage to build | no | "" |
| platforms | List of target platforms for build (e.g. linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,etc) | no | linux/amd64 |
| provenance | Generate provenance attestation for the build | no | — |
| image_name | Image name (excluding registry). Defaults to {{$organization/$repository}}. | no | "" |
| login | Docker login | no | "" |
| password | Docker password | no | "" |
| cache-from | List of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir) | no | type=gha |
| cache-to | List of cache export destinations for buildx (e.g., user/app:cache, type=local,dest=path/to/dir) | no | type=gha,mode=max |
| no-cache | Send the --no-cache flag to the docker build process | no | false |
| ssh | List of SSH agent socket or keys to expose to the build | no | — |
| tags | List of tags (supports https://github.com/docker/metadata-action#tags-input) | no | — |
| secrets | List of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken) | no | — |
| secret-files | List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt) | no | — |
| docker-metadata-pr-head-sha | Set to `true` to tag images with the PR HEAD SHA instead of the merge commit SHA within pull requests. | no | false |
| inspect | Set to `true` will pull and inspect the image and output it. | no | false |
| summary | Set to `true` will create step summary. | no | true |
| debug | Enable debug mode | no | false |
Outputs
| name | description |
|---|---|
| image | Docker image name |
| tag | Docker image tag |
| metadata | Docker image metadata |
| inspect | Docker image inspect metadata |