Added triggers; changed folder structure
This commit is contained in:
		
							parent
							
								
									1fe352eb09
								
							
						
					
					
						commit
						146b965eca
					
				| @ -2,6 +2,15 @@ variables: | |||||||
|   AppName: basketapi |   AppName: basketapi | ||||||
|   OpenShiftServiceConnection: 'OpenShift on ARO' |   OpenShiftServiceConnection: 'OpenShift on ARO' | ||||||
|   SourceImageRegistryProjectName: 'development' |   SourceImageRegistryProjectName: 'development' | ||||||
|  | trigger: | ||||||
|  |   branches: | ||||||
|  |     include: | ||||||
|  |     - master | ||||||
|  |     - dev | ||||||
|  |   paths: | ||||||
|  |     include: | ||||||
|  |     - deploy/aro/basket-api/* | ||||||
|  |     - deploy/aro/openshift-templates/* | ||||||
| resources: | resources: | ||||||
|   pipelines: |   pipelines: | ||||||
|     - pipeline: BasketApiBuild |     - pipeline: BasketApiBuild | ||||||
|  | |||||||
| @ -1,5 +1,14 @@ | |||||||
| variables: | variables: | ||||||
|   OpenShiftServiceConnection: 'OpenShift on ARO' |   OpenShiftServiceConnection: 'OpenShift on ARO' | ||||||
|  | trigger: | ||||||
|  |   branches: | ||||||
|  |     include: | ||||||
|  |     - master | ||||||
|  |     - dev | ||||||
|  |   paths: | ||||||
|  |     include: | ||||||
|  |     - deploy/aro/infrastructure/* | ||||||
|  |     - deploy/aro/openshift-templates/infrastructure/* | ||||||
| stages: | stages: | ||||||
|   - stage: development |   - stage: development | ||||||
|     displayName: Development |     displayName: Development | ||||||
| @ -31,9 +40,9 @@ stages: | |||||||
|           - script: 'oc project $(OpenShiftProject)' |           - script: 'oc project $(OpenShiftProject)' | ||||||
|             failOnStderr: true |             failOnStderr: true | ||||||
|             displayName: 'Set OpenShift Project Context' |             displayName: 'Set OpenShift Project Context' | ||||||
|           - script: 'oc process -f ./deploy/aro/openshift-templates/secrets-deploy-template.yml  -p IDENTITY_DB_CONNECTION_SECRET=$(IdentityDbConnection) -p MARKETING_DB_CONNECTION_SECRET=$(MarketingDbConnection) -p ORDERING_DB_CONNECTION_SECRET=$(OrderingDbConnection) -p SQL_PASSWORD_SECRET=$(SqlPassword) -p WEBHOOKS_DB_CONNECTION_SECRET=$(WebhooksDbConnection) | oc apply -f-' |           - script: 'oc process -f ./deploy/aro/openshift-templates/infrastructure/secrets-deploy-template.yml  -p IDENTITY_DB_CONNECTION_SECRET=$(IdentityDbConnection) -p MARKETING_DB_CONNECTION_SECRET=$(MarketingDbConnection) -p ORDERING_DB_CONNECTION_SECRET=$(OrderingDbConnection) -p SQL_PASSWORD_SECRET=$(SqlPassword) -p WEBHOOKS_DB_CONNECTION_SECRET=$(WebhooksDbConnection) | oc apply -f-' | ||||||
|             failOnStderr: true |             failOnStderr: true | ||||||
|             displayName: 'Secrets Deployment' |             displayName: 'Secrets Deployment' | ||||||
|           - script: 'oc process -f ./deploy/aro/openshift-templates/rabbitmq-image-deploy-template.yml -p APPLICATION_NAME=$(AppName) -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-' |           - script: 'oc process -f ./deploy/aro/openshift-templates/infrastructure/rabbitmq-image-deploy-template.yml -p APPLICATION_NAME=$(AppName) -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-' | ||||||
|             failOnStderr: true |             failOnStderr: true | ||||||
|             displayName: 'RabbitMQ Deployment' |             displayName: 'RabbitMQ Deployment' | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user