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 5a47f5b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 34 deletions.
29 changes: 0 additions & 29 deletions build/azure-pipelines-gh-release.yml

This file was deleted.

22 changes: 17 additions & 5 deletions build/azure-pipelines-release.yml
Expand Up @@ -12,16 +12,28 @@ pool:

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

steps:
- template: build-and-test.yml
# - template: build-and-test.yml

- script: make xbuild-all
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 5a47f5b

Please sign in to comment.