Skip to content

Commit

Permalink
Support multi level images
Browse files Browse the repository at this point in the history
Like: registry.example.com/repo/image/name:0.1.1
  • Loading branch information
inakiabt authored Feb 23, 2017
1 parent 3cd2c54 commit 9dab231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecs-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ fi
# - image
# - tag
# If a group is missing it will be an empty string
imageRegex="^([a-zA-Z0-9.\-]+):?([0-9]+)?/([a-zA-Z0-9._-]+)/?([a-zA-Z0-9._-]+)?:?([a-zA-Z0-9\._-]+)?$"
imageRegex="^([a-zA-Z0-9.\-]+):?([0-9]+)?\/([a-zA-Z0-9._-]+)\/?([a-zA-Z0-9._\-\/]+)*:?([a-zA-Z0-9\._-]+)?$"

if [[ $IMAGE =~ $imageRegex ]]; then
# Define variables from matching groups
Expand Down

0 comments on commit 9dab231

Please sign in to comment.