Clean username before using as docker image tag
* Clean username before using as docker image tag
* Allow Alphanumerics instead of just alphabets in docker image tag
Incorporate Alex's suggestions
Fixes
@@ -24,7 +24,8 @@ head_root_tag() {
if clean_head ; then
clean_head_root_tag
else
- echo "dev-$(git_sha_head)-$USER"
+ name="$(echo $USER | sed "s/[^[:alnum:].-]//g")"
+ echo "dev-$(git_sha_head)-$name"
fi
}
