spice-labs-inc/Publish Docker Image
Build, tag, and publish a Docker image to GHCR
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| image | Full image name (e.g. ghcr.io/org/repo) | yes | — |
| dockerfile | Path to Dockerfile | — | Dockerfile |
| tags | Newline-separated list of tags | yes | — |
| push | Whether to push images | — | true |
| git-sha | Git SHA for VERGEN_GIT_SHA build arg | no | — |
| target | Docker build target stage name | no | "" |
| platforms | Comma-separated list of target platforms (e.g. linux/amd64,linux/arm64). Defaults to the runner's native platform. | no | "" |
| build-contexts | Additional build contexts (newline-separated name=value) | no | "" |
| build-args | Additional build arguments (newline-separated name=value); GIT_SHA is always passed | no | "" |
| registry | Registry hostname | — | ghcr.io |
| registry-username | Registry username | — | "" |
| registry-password | Registry password (or token) | yes | — |
| attest | Generate provenance attestation for the pushed image | — | true |
Outputs
| name | description |
|---|---|
| digest | The digest of the pushed image (e.g. sha256:...) |