Skip to content

Commit

Permalink
Allow specifiying digests in Docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
3XX0 committed Mar 13, 2020
1 parent 3eb90a9 commit 0a48a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ docker::import() (
local -r reg_user="[[:alnum:]_.!~*\'()%\;:\&=+$,-@]+"
local -r reg_registry="[^#]+"
local -r reg_image="[[:lower:][:digit:]/._-]+"
local -r reg_tag="[[:alnum:]._-]+"
local -r reg_tag="[[:alnum:]._:-]+"

if [[ "${uri}" =~ ^docker://((${reg_user})@)?((${reg_registry})#)?(${reg_image})(:(${reg_tag}))?$ ]]; then
user="${BASH_REMATCH[2]}"
Expand Down

0 comments on commit 0a48a03

Please sign in to comment.