alexjurkiewicz / ecr-scan-image

Github Action to run AWS ECR vulnerability scan on Docker image
MIT License
28 stars 22 forks source link

image tagging #40

Open mwinzie opened 1 year ago

mwinzie commented 1 year ago

I am using this format to tag my image $(date +%Y%m%d)-${{ github.run_number }}, it's not an acceptable format as I get this error:

Error: Invalid parameter at 'imageTag' failed to satisfy constraint: 'must satisfy regular expression '[a-zA-Z0-9-_.]+''

Kindly assist

pzi commented 1 year ago

This feels unrelated to this repo and more related to how github workflows work? Unless I am misunderstanding your question. Regardless, what does date+{{ github.run_number }} result to? Does it fall within this regular expression [a-zA-Z0-9-_.]+ (only letters and numbers, dash, underscore and full stop allowed)?