From 617752cce09e1407c9eb2125040af1124875bc19 Mon Sep 17 00:00:00 2001 From: Ben Pye Date: Sun, 12 May 2019 17:56:01 -0700 Subject: [PATCH] Set up CI with Azure Pipelines --- Readme.md | 2 ++ azure-pipelines.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/Readme.md b/Readme.md index bcf3409..fc33b18 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,7 @@ # wsl-ssh-pageant +[![Build Status](https://benpye.visualstudio.com/benpye/_apis/build/status/benpye.wsl-ssh-pageant?branchName=golang)](https://benpye.visualstudio.com/benpye/_build/latest?definitionId=1&branchName=golang) + ## Why I use a Yubikey to store a GPG key pair and I like to use this key pair as my SSH key too. GPG on Windows exposes a Pageant style SSH agent and I wanted a way to use this key within WSL. I have rewritten this in Go as it means the release is a single simple binary, and I like Go. diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..ac37c3c --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,30 @@ +trigger: +- golang + +pool: + vmImage: 'vs2017-win2016' + +variables: + GOBIN: '$(GOPATH)\bin' # Go binaries path + GOPATH: '$(system.defaultWorkingDirectory)\gopath' # Go workspace path + +steps: +- task: PowerShell@2 + inputs: + filePath: '.\build.ps1' +- task: PublishPipelineArtifact@0 + inputs: + artifactName: 'build' + targetPath: '.\build' +- task: GitHubRelease@0 + displayName: 'GitHub release (create)' + condition: eq(variables['Build.SourceBranch'], 'refs/heads/golang') + inputs: + repositoryName: '$(Build.Repository.Name)' + action: 'create' + target: '$(Build.SourceVersion)' + tagSource: 'manual' + tag: '$(Build.BuildNumber)' + assets: 'build\*' + isPreRelease: true + gitHubConnection: 'github connection 1'