fix(appveyor): update split

This commit is contained in:
Bo-Yi Wu 2017-12-19 12:32:23 +08:00
parent 9dfbd29ced
commit 996bb07855

View File

@ -46,7 +46,7 @@ deploy_script:
} else {
docker login --username $env:DOCKER_USERNAME --password $env:DOCKER_PASSWORD
if ( $env:APPVEYOR_REPO_TAG -eq 'true' ) {
$major,$minor,$patch = $env:APPVEYOR_REPO_TAG_NAME.substring(1).split('.')
$major,$minor,$patch = $env:APPVEYOR_REPO_TAG_NAME.split('.')
docker push appleboy/drone-telegram:windows
docker tag appleboy/drone-telegram:windows appleboy/drone-telegram:$major.$minor.$patch-windows
docker push appleboy/drone-telegram:$major.$minor.$patch-windows