0
0
mirror of https://github.com/thegeeklab/wp-gitea-release.git synced 2024-11-22 00:00:41 +00:00

Provide a password using STDIN (#10)

This commit is contained in:
Bo-Yi Wu 2018-07-01 05:33:20 +08:00 committed by Jonas Franz
parent 1a7e5488a0
commit f8a7014264

View File

@ -45,7 +45,7 @@ deploy_script:
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.substring(1).split('.')