Switched to JSON file
This commit is contained in:
		
							parent
							
								
									c3259839a8
								
							
						
					
					
						commit
						248349248f
					
				@ -33,10 +33,22 @@ stages:
 | 
				
			|||||||
          displayName: 'Replace tokens in catalog-public-route'
 | 
					          displayName: 'Replace tokens in catalog-public-route'
 | 
				
			||||||
          inputs:
 | 
					          inputs:
 | 
				
			||||||
            sourcePath: ./deploy/aro/catalog-api
 | 
					            sourcePath: ./deploy/aro/catalog-api
 | 
				
			||||||
            filePattern: catalog-public-route.yml
 | 
					            filePattern: catalog-public-route.json
 | 
				
			||||||
        - task: CopyFiles@2
 | 
					        - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
 | 
				
			||||||
 | 
					          displayName: 'Setup Openshift CLI'
 | 
				
			||||||
          inputs:
 | 
					          inputs:
 | 
				
			||||||
            contents: deploy/aro/catalog-api/**
 | 
					            openshiftService: $(OpenShiftServiceConnection)
 | 
				
			||||||
            targetFolder: $(Build.ArtifactStagingDirectory)
 | 
					        - script: 'oc project $(OpenShiftProject)'
 | 
				
			||||||
        - task: PublishBuildArtifacts@1
 | 
					          failOnStderr: true
 | 
				
			||||||
          displayName: 'Publish Artifact: drop'
 | 
					          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'
 | 
				
			||||||
							
								
								
									
										26
									
								
								deploy/aro/catalog-api/catalog-public-route.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								deploy/aro/catalog-api/catalog-public-route.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
						"apiVersion": "v1",
 | 
				
			||||||
 | 
						"kind": "Route",
 | 
				
			||||||
 | 
						"metadata": {
 | 
				
			||||||
 | 
							"labels": {
 | 
				
			||||||
 | 
								"app": "catalogapi"
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							"name": "catalog-public-route"
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						"spec": {
 | 
				
			||||||
 | 
							"host": "__CatalogPublicHostName__",
 | 
				
			||||||
 | 
					        "port": {
 | 
				
			||||||
 | 
					            "targetPort": "8080-tcp"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
							"to": {
 | 
				
			||||||
 | 
								"kind": "Service",
 | 
				
			||||||
 | 
								"name": "catalogapi"
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
					        "tls": {
 | 
				
			||||||
 | 
					        "termination": "edge",
 | 
				
			||||||
 | 
					        "key": "__PrivateKey2__",
 | 
				
			||||||
 | 
					        "certificate": "__Certificate2__",
 | 
				
			||||||
 | 
					        "caCertificate": "__CaCertificate2__"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user