Browse Source

Added artifacts

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
67038ab6db
2 changed files with 6 additions and 18 deletions
  1. +5
    -17
      deploy/aro/catalog-api/azure-pipelines.yml
  2. +1
    -1
      deploy/aro/catalog-api/catalog-public-route.json

+ 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.json filePattern: catalog-public-route.json
- 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.json'
failOnStderr: true
displayName: 'Ensure Catalog API Route'
contents: deploy/aro/catalog-api/catalog-public-route.yml
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'

+ 1
- 1
deploy/aro/catalog-api/catalog-public-route.json View File

@ -1,5 +1,5 @@
{ {
"apiVersion": "v1",
"apiVersion": "route.openshift.io/v1",
"kind": "Route", "kind": "Route",
"metadata": { "metadata": {
"labels": { "labels": {


Loading…
Cancel
Save