Skip to content

Commit

Permalink
Update merge to master pipeline to create a github release with outpu…
Browse files Browse the repository at this point in the history
…t_newrelic.so as an asset.
  • Loading branch information
Timothy Ngo committed Feb 27, 2020
1 parent 61c1e56 commit 48b7a1b
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions merge-to-master-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ steps:
targetType: 'inline'
workingDirectory: '$(modulePath)'
script: |
DOCKER_IMAGE_VERSION=`cat version.go | grep VERSION | awk '{gsub(/"/, "", $4); print $4}'`
echo "##vso[task.setvariable variable=DOCKER_IMAGE_VERSION]$DOCKER_IMAGE_VERSION"
VERSION=`cat version.go | grep VERSION | awk '{gsub(/"/, "", $4); print $4}'`
echo "##vso[task.setvariable variable=VERSION]$VERSION"
make all
- task: Docker@2
displayName: Login to Docker Hub
inputs:
Expand All @@ -62,4 +62,17 @@ steps:
command: buildAndPush
buildContext: '$(modulePath)'
repository: newrelic/newrelic-fluentbit-output
tags: $(DOCKER_IMAGE_VERSION)
tags: $(VERSION)

- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com_ngotim'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '$(VERSION)'
title: 'Testing'
assets: '$(modulePath)/out_newrelic.so'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'

0 comments on commit 48b7a1b

Please sign in to comment.