Skip to content

Commit

Permalink
Merge GH and release pipelines
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
  • Loading branch information
simongdavies committed Mar 23, 2021
1 parent 98942ac commit 5b5802a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
29 changes: 0 additions & 29 deletions build/azure-pipelines-gh-release.yml

This file was deleted.

20 changes: 16 additions & 4 deletions build/azure-pipelines-release.yml
Expand Up @@ -12,6 +12,7 @@ pool:

variables:
GOVERSION: "1.14.6"
tag: $[replace(variables['Build.SourceBranch'],'refs/tags/','')]

steps:
- template: build-and-test.yml
Expand All @@ -20,8 +21,19 @@ steps:
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Build Release'

- script: make publish
env:
AZURE_STORAGE_CONNECTION_STRING: $(AZURE_STORAGE_CONNECTION_STRING)
- script: |
export AZURE_STORAGE_CONNECTION_STRING=$(AZURE_STORAGE_CONNECTION_STRING)
make publish
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Publish'
displayName: 'Publish'
- task: GitHubRelease@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
gitHubConnection: $(GITHUB_CONNECTIONNAME)
repositoryName: '$(Build.Repository.Name)'
action: 'create'
tagSource: 'auto'
assets: '$(System.DefaultWorkingDirectory)/bin/plugins/kubernetes/$(tag)/**'
addChangeLog: true
compareWith: 'lastFullRelease'

0 comments on commit 5b5802a

Please sign in to comment.