fix missing docker image tag.

This commit is contained in:
Bo-Yi Wu 2018-01-24 16:02:40 +08:00 committed by GitHub
parent 007321b4e7
commit 195bbd1631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,15 +44,15 @@ deploy_script:
if ( $env:APPVEYOR_REPO_TAG -eq 'true' ) { 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.substring(1).split('.')
docker push plugins/matrix:windows docker push plugins/matrix:windows-amd64
docker tag plugins/matrix:windows plugins/matrix:$major.$minor.$patch-windows docker tag plugins/matrix:windows-amd64 plugins/matrix:$major.$minor.$patch-windows
docker push plugins/matrix:$major.$minor.$patch-windows-amd64 docker push plugins/matrix:$major.$minor.$patch-windows-amd64
docker tag plugins/matrix:windows plugins/matrix:$major.$minor-windows docker tag plugins/matrix:windows-amd64 plugins/matrix:$major.$minor-windows
docker push plugins/matrix:$major.$minor-windows-amd64 docker push plugins/matrix:$major.$minor-windows-amd64
docker tag plugins/matrix:windows plugins/matrix:$major-windows docker tag plugins/matrix:windows-amd64 plugins/matrix:$major-windows
docker push plugins/matrix:$major-windows-amd64 docker push plugins/matrix:$major-windows-amd64
} else { } else {
if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) { if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) {