Added artifacts

This commit is contained in:
Tim McCarthy 2020-02-27 00:01:48 -08:00
parent 248349248f
commit 67038ab6db
2 changed files with 6 additions and 18 deletions

View File

@ -34,21 +34,9 @@ stages:
inputs:
sourcePath: ./deploy/aro/catalog-api
filePattern: catalog-public-route.json
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
displayName: 'Setup Openshift CLI'
- task: CopyFiles@2
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'

View File

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