In build template replace some vars by parameters because vars seems not be read
This commit is contained in:
parent
9489499567
commit
32db98422c
@ -1,6 +1,8 @@
|
|||||||
parameters:
|
parameters:
|
||||||
services: ''
|
services: ''
|
||||||
registryEndpoint: ''
|
registryEndpoint: ''
|
||||||
|
helmfrom: ''
|
||||||
|
helmto: ''
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildContainersForPR_Linux
|
- job: BuildContainersForPR_Linux
|
||||||
@ -52,11 +54,11 @@ jobs:
|
|||||||
TAG=${{ variables['Build.SourceBranchName'] }}
|
TAG=${{ variables['Build.SourceBranchName'] }}
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: "${{ variables['Build.SourcesDirectory'] }}/k8s/helm"
|
sourceFolder: ${{ parameters.helmfrom }}
|
||||||
targetFolder: "${{ variables['Build.ArtifactStagingDirectory'] }}/k8s/helm"
|
targetFolder: ${{ parameters.helmto }}
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
inputs:
|
inputs:
|
||||||
pathtoPublish: "${{ variables['Build.ArtifactStagingDirectory'] }}/k8s/helm"
|
pathtoPublish: ${{ parameters.helmto }}
|
||||||
artifactName: helm
|
artifactName: helm
|
||||||
- job: BuildWindows
|
- job: BuildWindows
|
||||||
condition: ne('${{ variables['Build.Reason'] }}', 'PullRequest')
|
condition: ne('${{ variables['Build.Reason'] }}', 'PullRequest')
|
||||||
|
@ -15,6 +15,8 @@ jobs:
|
|||||||
parameters:
|
parameters:
|
||||||
services: catalog.api
|
services: catalog.api
|
||||||
registryEndpoint: $(registryEndpoint)
|
registryEndpoint: $(registryEndpoint)
|
||||||
|
helmfrom: $(Build.SourcesDirectory)/k8s/helm
|
||||||
|
helmto: $(Build.ArtifactStagingDirectory)/k8s/helm
|
||||||
- template: ../multiarch.yaml
|
- template: ../multiarch.yaml
|
||||||
parameters:
|
parameters:
|
||||||
image: catalog.api
|
image: catalog.api
|
||||||
|
Loading…
x
Reference in New Issue
Block a user