You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version of the action I am using is redhat-actions/s2i-build@v2
Describe the bug
When using the tags functionality of the action (i.e. supplying tags to the action) and having more than one tag specified and separated by spaces, the action fails. This is due to the fact that the underlying docker command it uses (docker tag) can only add one tag per call and not multiple tags.
Steps to reproduce, workflow links, screenshots
You can reproduce this by creating a workflow that utilizes the multiple tagging feature.
Something like the example workflow in the README should work:
The image will be built, but the action will fail at the tagging stage.
An example of the output (image names redacted):
Tagging the built image with tags latest, v1.0.0 and 9ef2acd0a5de8356cce01758d657f4cba43458e9
/usr/bin/docker tag myproject/myimage:latest myproject/myimage:v1.0.0 myproject/myimage:9ef2acd0a5de8356cce01758d657f4cba43458e9
"docker tag" requires exactly 2 arguments.
See 'docker tag --help'.
Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Error: Error: docker exited with code 1
"docker tag" requires exactly 2 arguments.
See 'docker tag --help'.
Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
The text was updated successfully, but these errors were encountered:
Version
The version of the action I am using is redhat-actions/s2i-build@v2
Describe the bug
When using the tags functionality of the action (i.e. supplying
tags
to the action) and having more than one tag specified and separated by spaces, the action fails. This is due to the fact that the underlying docker command it uses (docker tag
) can only add one tag per call and not multiple tags.Steps to reproduce, workflow links, screenshots
You can reproduce this by creating a workflow that utilizes the multiple tagging feature.
Something like the example workflow in the README should work:
The image will be built, but the action will fail at the tagging stage.
An example of the output (image names redacted):
The text was updated successfully, but these errors were encountered: