From dd76ec7618375aa57ff9adf6f61718f18cf5cc0e Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Wed, 24 Jul 2019 20:17:44 -0400 Subject: [PATCH] Add tag replacement --- Weather/SerialReader/deploy/azure-pipelines.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Weather/SerialReader/deploy/azure-pipelines.yml b/Weather/SerialReader/deploy/azure-pipelines.yml index 99f88eb..961d0cb 100644 --- a/Weather/SerialReader/deploy/azure-pipelines.yml +++ b/Weather/SerialReader/deploy/azure-pipelines.yml @@ -31,8 +31,13 @@ steps: imageName: 'ckaczor/home-monitor-weather-serialreader:$(Build.BuildNumber)' includeLatestTag: true +- task: Bash@3 + inputs: + targetType: 'inline' + script: 'sed -i s/{TAG}/${Build.BuildNumber}/ Weather/SerialReader/deploy/manifest.yaml' + - task: PublishBuildArtifacts@1 inputs: - PathtoPublish: 'Weather/SerialReader/deploy/service.yaml' + PathtoPublish: 'Weather/SerialReader/deploy/manifest.yaml' ArtifactName: 'Manifest' publishLocation: 'Container' \ No newline at end of file