Browse Source

Added triggers; changed folder structure

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
146b965eca
4 changed files with 20 additions and 2 deletions
  1. +9
    -0
      deploy/aro/basket-api/azure-pipelines.yml
  2. +11
    -2
      deploy/aro/infrastructure/azure-pipelines.yml
  3. +0
    -0
      deploy/aro/openshift-templates/infrastructure/rabbitmq-image-deploy-template.yml
  4. +0
    -0
      deploy/aro/openshift-templates/infrastructure/secrets-deploy-template.yml

+ 9
- 0
deploy/aro/basket-api/azure-pipelines.yml View File

@ -2,6 +2,15 @@ variables:
AppName: basketapi
OpenShiftServiceConnection: 'OpenShift on ARO'
SourceImageRegistryProjectName: 'development'
trigger:
branches:
include:
- master
- dev
paths:
include:
- deploy/aro/basket-api/*
- deploy/aro/openshift-templates/*
resources:
pipelines:
- pipeline: BasketApiBuild


+ 11
- 2
deploy/aro/infrastructure/azure-pipelines.yml View File

@ -1,5 +1,14 @@
variables:
OpenShiftServiceConnection: 'OpenShift on ARO'
trigger:
branches:
include:
- master
- dev
paths:
include:
- deploy/aro/infrastructure/*
- deploy/aro/openshift-templates/infrastructure/*
stages:
- stage: development
displayName: Development
@ -31,9 +40,9 @@ stages:
- script: 'oc project $(OpenShiftProject)'
failOnStderr: true
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
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
displayName: 'RabbitMQ Deployment'

deploy/aro/openshift-templates/rabbitmq-image-deploy-template.yml → deploy/aro/openshift-templates/infrastructure/rabbitmq-image-deploy-template.yml View File


deploy/aro/openshift-templates/secrets-deploy-template.yml → deploy/aro/openshift-templates/infrastructure/secrets-deploy-template.yml View File


Loading…
Cancel
Save