macbre/push-to-ghcr
This action simplifies pushes of Docker images ot ghcr.io repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | Your secrets.GITHUB_TOKEN | yes | — |
| image_name | Image name, e.g. my-user-name/my-repo (will be lowercased) | yes | — |
| dockerfile | A path to the Dockerfile (if it's not in the repository's root directory) | no | ./Dockerfile |
| context | A path to the context in which the build will happen, see https://docs.docker.com/engine/reference/commandline/build/ | no | . |
| repository | Docker repository to push an image to, defaults to ghcr.io | yes | ghcr.io |
| docker_io_user | A username to use when pushing an image to docker.io (defaults to the github.actor) | no | — |
| docker_io_token | Your docker.io token created via https://hub.docker.com/settings/security | no | — |
| image_tag | Image tag or tags, e.g. latest or "1.0.0,latest". Only tag names are accepted. Will overwrite the latest tag on a push, and have no effect on a release. | no | — |
| build_arg | Additional build argument to be passed to the Dockerfile (e.g. NODE_AUTH_TOKEN=s3cr3t) | no | FOO=bar |
| extra_args | Additional arguments to be passed to "docker build". | no | "" |
| platforms | Comma-separated list of target platforms for the build (e.g. linux/amd64,linux/arm64). When set, uses docker buildx for multi-platform builds and pushes directly to the registry. | no | "" |
Outputs
no outputs