From 4c994f504528198c5cb72900f6c3294b46edaf1b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 27 Jun 2018 14:59:29 +0800 Subject: [PATCH] fix: Provide a password using STDIN --- .appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 5a4e775..111fcec 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -41,10 +41,11 @@ test_script: deploy_script: - ps: | + $ErrorActionPreference = 'Stop'; if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) { Write-Host Nothing to deploy. } else { - docker login --username $env:DOCKER_USERNAME --password $env:DOCKER_PASSWORD + echo $env:DOCKER_PASSWORD | docker login --username $env:DOCKER_USERNAME --password-stdin if ( $env:APPVEYOR_REPO_TAG -eq 'true' ) { $major,$minor,$patch = $env:APPVEYOR_REPO_TAG_NAME.split('.') docker push appleboy/drone-telegram:windows-amd64