Skip to content

Commit 014aa2a

Browse files
committed
fix: Provide a password using STDIN
1 parent 5d5127b commit 014aa2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ deploy_script:
4343
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) {
4444
Write-Host Nothing to deploy.
4545
} else {
46-
docker login --username $env:DOCKER_USERNAME --password $env:DOCKER_PASSWORD
46+
echo $env:DOCKER_PASSWORD | docker login --username $env:DOCKER_USERNAME --password-stdin
4747
if ( $env:APPVEYOR_REPO_TAG -eq 'true' ) {
4848
$major,$minor,$patch = $env:APPVEYOR_REPO_TAG_NAME.split('.')
4949
docker push appleboy/gorush:windows-amd64

0 commit comments

Comments
 (0)