Merge pull request #351 from drone-plugins/win_fix

Fix windows docker builds
This commit is contained in:
TP Honey 2022-01-10 10:02:17 +00:00 committed by GitHub
commit 0ffe085ddc
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -21,7 +21,7 @@ echo $env:REGISTRY
# build the binary # build the binary
Write-Host "+ go build -o release/windows/amd64/drone-${env:REGISTRY}.exe"; Write-Host "+ go build -o release/windows/amd64/drone-${env:REGISTRY}.exe";
go build -o release/windows/amd64/drone-${env:REGISTRY}.exe go build -o release/windows/amd64/drone-${env:REGISTRY}.exe ./cmd/drone-${env:REGISTRY}
# build and publish the docker image # build and publish the docker image
docker login -u ${env:USERNAME} -p ${env:PASSWORD} docker login -u ${env:USERNAME} -p ${env:PASSWORD}

@ -31,7 +31,7 @@ echo $env:VERSION
# build the binary # build the binary
Write-Host "+ go build -o release/windows/amd64/drone-${env:REGISTRY}.exe" Write-Host "+ go build -o release/windows/amd64/drone-${env:REGISTRY}.exe"
go build -o release/windows/amd64/drone-${env:REGISTRY}.exe go build -o release/windows/amd64/drone-${env:REGISTRY}.exe ./cmd/drone-${env:REGISTRY}
# authenticate with the docker registry # authenticate with the docker registry
docker login -u ${env:USERNAME} -p ${env:PASSWORD} docker login -u ${env:USERNAME} -p ${env:PASSWORD}