Skip to content

Commit

Permalink
create git release in a seperate job
Browse files Browse the repository at this point in the history
  • Loading branch information
arroyc authored Jun 14, 2019
1 parent f9c3c71 commit 58f1ee2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
26 changes: 25 additions & 1 deletion vsts/pipelines/templates/_releaseJobTemplate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,28 @@ jobs:
echo "##vso[task.setvariable variable=ReleaseRuntimeImages;]true"
displayName: 'Set variables'
- template: _releaseStepTemplate.yml
- template: _releaseStepTemplate.yml

- job: Release_GitHub
displayName: Create GitHub release
dependsOn:
- Release_BuildImage
- Release_RuntimeImages
pool:
name: OryxLinux
variables:
skipComponentGovernanceDetection: true

steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Artifacts for release'
inputs:
artifactName: drop

- task: GitHubRelease@0
displayName: 'GitHub release (create)'
inputs:
gitHubConnection: 'Oryx-GitHub'
repositoryName: Microsoft/Oryx
tagSource: manual
tag: '$(Build.BuildNumber)'
10 changes: 1 addition & 9 deletions vsts/pipelines/templates/_releaseStepTemplate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,4 @@ steps:
displayName: 'Clean up Docker containers and images'
inputs:
scriptPath: ./vsts/scripts/dockerCleanup.sh
condition: true

- task: GitHubRelease@0
displayName: 'GitHub release (create)'
inputs:
gitHubConnection: 'Oryx-GitHub'
repositoryName: Microsoft/Oryx
tagSource: manual
tag: '$(Build.BuildNumber)'
condition: true

0 comments on commit 58f1ee2

Please sign in to comment.