[FEATURE] tags
field should be a YAML list not a space separated list.
#101
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
In the Github Action YAML configuration file, the
tags
field should be a YAML list, not a space separated list.Indeed, YAML natively supports lists, so there is no reason to use a space separated list, other than not changing the source code which parses this YAML configuration.
Related issues:
tags
field should be a YAML list not a space separated list buildah-build#146tags
field should be a YAML list not a space separated list. #101Describe the solution you'd like
Use the list native support of YAML:
instead of a space separated list:
Describe alternatives you've considered
I have a situation where I need to tag an OCI image with a list of multiple tags which are actualy Github Action variable from other steps of my job.
Below is an example of what 13 tags in a Github Action recipe could looks like:
With 13 tags like this, it is not convenient to maintain a space separated list.
If I take the same 13 tags above and convert this list into a single oneliner like below, this becomes unreadable and unmaintable.
How does
docker
do for their own docker action?Below is an example of how docker/metadata-action handle the tags.
They do not rely on a YAML list. However, it is easier to write tags on multilines. Check the full example here.
This below is more readable than a single oneliner.
Additional context
In redhat-actions/buildah-build, there is a
tags
field which is a space separated list. Source:It is the same for redhat-actions/push-to-registry:
My motivation ?
Kaniko deprecation
The deprecation of
Kaniko
is a motivation to replaceKaniko
withpodman
andbuildah
.Use
podman
rather thandocker
Why not use
docker
since it is available in Ubuntu actions/runner-images?Because my workflow is using
podman
.And because Podman, skopeo and Buildah are all available in Github Actio Ubuntu 24.04 image.
Why not use docker github actions like docker/metadata-action?
Because I do not want to mix Github Action that rely on the
docker
CLI client with Github Actions that rely onpodman
andbuildah
.The text was updated successfully, but these errors were encountered: