From 13b75c15f09e3b423d0a9469e9442a1cb3bf84b4 Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 12 Apr 2021 20:01:12 +0200 Subject: [PATCH] outpost: download go-swagger from github (#730) * outpost: download go-swagger from github Signed-off-by: Jens Langhammer * outposts: use sudo to download swagger Signed-off-by: Jens Langhammer --- outpost/azure-pipelines.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/outpost/azure-pipelines.yml b/outpost/azure-pipelines.yml index d1c089918..992017566 100644 --- a/outpost/azure-pipelines.yml +++ b/outpost/azure-pipelines.yml @@ -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/'