Browse Source

Added artifacts

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
9b5dc17d4b
1 changed files with 5 additions and 17 deletions
  1. +5
    -17
      deploy/aro/catalog-api/azure-pipelines.yml

+ 5
- 17
deploy/aro/catalog-api/azure-pipelines.yml View File

@ -34,21 +34,9 @@ stages:
inputs: inputs:
sourcePath: ./deploy/aro/catalog-api sourcePath: ./deploy/aro/catalog-api
filePattern: catalog-public-route.yml filePattern: catalog-public-route.yml
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
displayName: 'Setup Openshift CLI'
- task: CopyFiles@2
inputs: inputs:
openshiftService: $(OpenShiftServiceConnection)
- script: 'oc project $(OpenShiftProject)'
failOnStderr: true
displayName: 'Set OpenShift Project Context'
- script: 'oc process -f ./deploy/aro/openshift-templates/catalogapi-deploy-template.yml
-p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName)
-p PIC_BASE_URL=$(PicBaseUrl)
-p RABBITMQ_HOSTNAME=$(RabbitMqHostname)
-p CATALOG_PUBLIC_HOSTNAME=$(CatalogPublicHostName)
| oc apply -f-'
failOnStderr: true
displayName: 'Ensure Catalog API OpenShift DeploymentConfig and Service'
- script: 'oc apply -f ./deploy/aro/catalog-api/catalog-public-route.yml --dry-run=true'
failOnStderr: true
displayName: 'Ensure Catalog API Route'
contents: ./deploy/aro/catalog-api/**
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'

Loading…
Cancel
Save