outpost: download go-swagger from github (#730)
* outpost: download go-swagger from github Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outposts: use sudo to download swagger Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d329995740
commit
13b75c15f0
|
@ -22,11 +22,8 @@ stages:
|
|||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: |
|
||||
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
|
||||
sudo wget -O /usr/local/bin/swagger https://github.com/go-swagger/go-swagger/releases/latest/download/swagger_linux_amd64
|
||||
sudo chmod +x /usr/local/bin/swagger
|
||||
mkdir -p $(go env GOPATH)
|
||||
swagger generate client -f ../swagger.yaml -A authentik -t pkg/
|
||||
workingDirectory: 'outpost/'
|
||||
|
|
Reference in New Issue