mirror of
https://github.com/thegeeklab/drone-s3-sync.git
synced 2024-11-22 11:10:39 +00:00
Provide a password using STDIN (#41)
This commit is contained in:
parent
b0dadb7aa6
commit
d98a437ca3
@ -45,7 +45,7 @@ deploy_script:
|
|||||||
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) {
|
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) {
|
||||||
Write-Host Nothing to deploy.
|
Write-Host Nothing to deploy.
|
||||||
} else {
|
} 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' ) {
|
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('.')
|
||||||
|
Loading…
Reference in New Issue
Block a user