That syntax is not supported in the tag section. The docker tag field is a Go string literal (not a bash string) which means it will not evaluate your bash expression. The same is true of the environment section. Please see http://docs.drone.io/environment/, specifically the last example which explains this further.