From 8b6e33fcab8a6f9bb9049103ad7002f2c235f595 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 3 Apr 2018 09:37:18 +0800 Subject: [PATCH] fix: wrong docker container name for windows. --- .appveyor.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index bf67451..5a4e775 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -33,11 +33,11 @@ build_script: go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe } docker pull microsoft/nanoserver:10.0.14393.1884 - docker build -f Dockerfile.windows -t appleboy/drone-telegram:windows . + docker build -f Dockerfile.windows -t appleboy/drone-telegram:windows-amd64 . test_script: - ps: | - docker run --rm appleboy/drone-telegram:windows --version + docker run --rm appleboy/drone-telegram:windows-amd64 --version deploy_script: - ps: | @@ -47,16 +47,19 @@ deploy_script: 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.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 - docker tag appleboy/drone-telegram:windows appleboy/drone-telegram:$major.$minor-windows - docker push appleboy/drone-telegram:$major.$minor-windows - docker tag appleboy/drone-telegram:windows appleboy/drone-telegram:$major-windows - docker push appleboy/drone-telegram:$major-windows + docker push appleboy/drone-telegram:windows-amd64 + + docker tag appleboy/drone-telegram:windows-amd64 appleboy/drone-telegram:$major.$minor.$patch-windows-amd64 + docker push appleboy/drone-telegram:$major.$minor.$patch-windows-amd64 + + docker tag appleboy/drone-telegram:windows-amd64 appleboy/drone-telegram:$major.$minor-windows-amd64 + docker push appleboy/drone-telegram:$major.$minor-windows-amd64 + + docker tag appleboy/drone-telegram:windows-amd64 appleboy/drone-telegram:$major-windows-amd64 + docker push appleboy/drone-telegram:$major-windows-amd64 } else { if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) { - docker push appleboy/drone-telegram:windows + docker push appleboy/drone-telegram:windows-amd64 } } }