proxy: backport fix of proxy pipeline

This commit is contained in:
Jens L 2020-12-04 09:59:59 +01:00 committed by GitHub
parent 3b12de23ff
commit 810a7ab50b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,14 +17,16 @@ stages:
- task: GoTool@0 - task: GoTool@0
inputs: inputs:
version: '1.15' version: '1.15'
- task: Go@0
inputs:
command: 'get'
arguments: '-u github.com/go-swagger/go-swagger/cmd/swagger'
- task: CmdLine@2 - task: CmdLine@2
inputs: inputs:
script: | script: |
$(go list -f {{.Target}} github.com/go-swagger/go-swagger/cmd/swagger) generate client -f ../swagger.yaml -A passbook -t pkg/ sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
echo "deb https://dl.bintray.com/go-swagger/goswagger-debian ubuntu main" | sudo tee /etc/apt/sources.list.d/goswagger.list
sudo apt update
sudo apt install swagger
mkdir -p $(go env GOPATH)
swagger generate client -f ../swagger.yaml -A passbook -t pkg/
workingDirectory: 'proxy/' workingDirectory: 'proxy/'
- task: PublishPipelineArtifact@1 - task: PublishPipelineArtifact@1
inputs: inputs: