Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
benpye committed May 13, 2019
1 parent 68a3640 commit 617752c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
30 changes: 30 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 617752c

Please sign in to comment.