mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2026-11-16 19:39:34 +00:00
* Add podman remote mode support Add a `remote` input that enables podman remote mode. When set to true, `--remote` is automatically passed to all podman commands and Docker image storage checks are skipped entirely, since the Docker daemon is not accessible over the remote connection. In remote mode, all image tags must be present in the remote podman storage -- there is no Docker fallback. Temporary local storage creation (used for Docker-to-Podman image transfer) is also skipped since it is irrelevant for remote operations. Closes #95 Co-Authored-By: Claude Opus 4.6 <[email protected]> * Fix generated inputs-outputs to match action-io-generator output The hand-edited comment for the REMOTE input didn't match the output from action-io-generator, causing the CI check-inputs-outputs job to fail. Regenerated the file to match. Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
71 lines
2.5 KiB
YAML
71 lines
2.5 KiB
YAML
name: 'Push To Registry'
|
|
description: 'Push a container image to an image registry'
|
|
author: 'Red Hat'
|
|
branding:
|
|
icon: circle
|
|
color: red
|
|
inputs:
|
|
image:
|
|
description: 'Name of the image/manifest to push (e.g. username/imagename or imagename)'
|
|
required: false
|
|
tags:
|
|
description: |
|
|
'The tag or tags of the image/manifest to push.
|
|
For multiple tags, separate by whitespace. For example, "latest v1"'
|
|
required: false
|
|
default: 'latest'
|
|
registry:
|
|
description: 'Hostname and optional namespace to push the image to (eg. quay.io/username or quay.io)'
|
|
required: false
|
|
username:
|
|
description: 'Username to use as credential to authenticate to the registry'
|
|
required: false
|
|
password:
|
|
description: 'Password to use as credential to authenticate to the registry'
|
|
required: false
|
|
tls-verify:
|
|
description: 'Verify TLS certificates when contacting the registry'
|
|
required: false
|
|
default: 'true'
|
|
digestfile:
|
|
description: |
|
|
After copying the image, write the digest of the resulting image to the file.
|
|
By default, the filename will be determined from the image and tag.
|
|
The contents of this file are the digest output.
|
|
required: false
|
|
sigstore-private-key:
|
|
description: 'Sigstore private key to use to sign container images'
|
|
required: false
|
|
sign-passphrase:
|
|
description: 'Passphrase to unlock the Sigstore private key'
|
|
required: false
|
|
remote:
|
|
description: |
|
|
Use podman in remote mode (--remote). When true, --remote is passed to
|
|
all podman commands and Docker image storage checks are skipped, since
|
|
the Docker daemon is not accessible over the remote connection.
|
|
required: false
|
|
default: 'false'
|
|
podman-args:
|
|
description: |
|
|
Global args to be passed to all podman commands (before the subcommand).
|
|
Use this for options like --storage-driver=vfs that must apply to every
|
|
podman invocation (image exists, manifest exists, push, etc.).
|
|
Separate arguments by newline. Do not use quotes.
|
|
required: false
|
|
extra-args:
|
|
description: |
|
|
Extra args to be passed to podman push.
|
|
Separate arguments by newline. Do not use quotes - @actions/exec will do the quoting for you.
|
|
required: false
|
|
|
|
outputs:
|
|
digest:
|
|
description: 'The pushed image/manifest digest, as written to the "digestfile"'
|
|
registry-path:
|
|
description: 'The first element of registry-paths.'
|
|
registry-paths:
|
|
description: 'A JSON array of registry paths to which the tag(s) were pushed'
|
|
runs:
|
|
using: 'node24'
|
|
main: 'dist/index.js'
|