Browse Source

In build template replace some vars by parameters because vars seems not be read

pull/1071/head
eiximenis 5 years ago
parent
commit
32db98422c
2 changed files with 7 additions and 3 deletions
  1. +5
    -3
      build/azure-devops/buildimages.yaml
  2. +2
    -0
      build/azure-devops/catalog-api/azure-pipelines.yml

+ 5
- 3
build/azure-devops/buildimages.yaml View File

@ -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"
targetFolder: "${{ variables['Build.ArtifactStagingDirectory'] }}/k8s/helm"
sourceFolder: ${{ parameters.helmfrom }}
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')


+ 2
- 0
build/azure-devops/catalog-api/azure-pipelines.yml View File

@ -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…
Cancel
Save