I’m using the circleci/aws-ecr orb to build and push an image. I’d like to use the git tag (CIRCLE_TAG env var) as the docker image tag, however, the git tag is in the following format:
@org/package@version
Which causes an error because @ and / aren’t allowed characters.
Is there a way that the use of CIRCLE_TAG in the below snippet can be modified to remove invalid characters, before being applied to the tag parameter?
Hey @yannCI, thanks so much for getting back to me, and for your suggestion.
I phrased my question badly, but what I was wondering was, where can I run the NICE_TAG=$(sed 's/@//' <<< $CIRCLE_TAG | sed 's/\//-/' | sed 's/@/./') line so that it can be used in the orb job params?