docker build -t hub.sky-cloud.net/nap/nap-executor:${DRONE_BRANCH//[^a-zA-Z0-9.]/-}_build-${DRONE_BUILD_NUMBER} .
this is what I’m trying to do. error msg as following
+ docker build -t hub.sky-cloud.net/nap/nap-executor:release/1.7.0_build-27 .
invalid argument "hub.sky-cloud.net/nap/nap-executor:release/1.7.0_build-27" for "-t, --tag" flag: invalid reference format
See 'docker build --help'.
It has been tested in localhost.
[root@drone nap-executor]# echo ${DRONE_BRANCH//[^a-zA-Z0-9.]/-}
release-1.7.0
[root@drone nap-executor]#