Skip to content
Snippets Groups Projects
Commit 20b1bfb2 authored by Dexter Williams's avatar Dexter Williams
Browse files

splitting yaml into pr pipeline and release pipeline

parent 5d29979e
No related branches found
No related tags found
1 merge request!6Trusted ibm
#####################
# README: Defines a template that's triggered when either a PR is created or updated. The intent for this
# template is to release the latest service artifact to only the dev integration environment to
# validate the integration tests have passed. You'd typically add this pipeline to your master branch policy.
#####################
trigger: none
pr:
autoCancel: false
branches:
include:
- '*'
exclude:
- master
paths:
exclude:
- /**/*.md
- .gitignore
- images/
variables:
- group: 'Azure Common Secrets'
- group: 'Azure - Common'
- name: serviceName
value: 'indexer'
- name: AGENT_POOL
value: 'dps-build'
resources:
repositories:
- repository: infrastructure-templates
type: git
name: open-data-ecosystem/infrastructure-templates
stages:
- template: devops/service-pipelines/build-stage.yml@infrastructure-templates
parameters:
copyFileContents: |
pom.xml
provider/${{ variables.serviceName }}-azure/maven/settings.xml
provider/${{ variables.serviceName }}-azure/pom.xml
provider/${{ variables.serviceName }}-azure/target/*-spring-boot.jar
copyFileContentsToFlatten: ''
serviceCoreMavenOptions: '--settings ./indexer-core/maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN) -U'
mavenOptions: '--settings ./provider/${{ variables.serviceName }}-azure/maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN) -U -P indexer-azure'
mavenGoal: 'package'
serviceBase: ${{ variables.serviceName }}
testingRootFolder: 'testing'
- template: devops/service-pipelines/deploy-stages.yml@infrastructure-templates
parameters:
serviceName: ${{ variables.serviceName }}
providers:
- name: Azure
environments: ['devint']
#####################
# README: Defines a template that's triggered when a PR is merged into master. The intent for this
# template is to release the latest service artifact to all provider environments.
#####################
trigger: none
pr:
autoCancel: false
branches:
include:
- '*'
exclude:
- master
paths:
exclude:
- /**/*.md
- .gitignore
- images/
variables:
- group: 'Azure Common Secrets Prod'
- group: 'Azure - Common Prod'
- name: serviceName
value: 'indexer'
- name: AGENT_POOL
value: 'dps-build'
resources:
repositories:
- repository: infrastructure-templates
type: git
name: open-data-ecosystem/infrastructure-templates
stages:
- template: devops/service-pipelines/build-stage.yml@infrastructure-templates
parameters:
copyFileContents: |
pom.xml
provider/${{ variables.serviceName }}-azure/maven/settings.xml
provider/${{ variables.serviceName }}-azure/pom.xml
provider/${{ variables.serviceName }}-azure/target/*-spring-boot.jar
copyFileContentsToFlatten: ''
serviceCoreMavenOptions: '--settings ./indexer-core/maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN) -U'
mavenOptions: '--settings ./provider/${{ variables.serviceName }}-azure/maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN) -U -P indexer-azure'
mavenGoal: 'package'
serviceBase: ${{ variables.serviceName }}
testingRootFolder: 'testing'
- template: devops/service-pipelines/deploy-stages.yml@infrastructure-templates
parameters:
serviceName: ${{ variables.serviceName }}
providers:
- name: Azure
environments: ['prod']
trigger:
batch: true
branches:
include:
- master
paths:
exclude:
- /**/*.md
- .gitignore
- images/
pr:
branches:
include:
- '*'
paths:
exclude:
- /**/*.md
- .gitignore
- images/
resources:
repositories:
- repository: infrastructure-templates
type: git
name: open-data-ecosystem/infrastructure-templates
variables:
- group: 'Azure Common Secrets'
- group: 'Azure - Common'
stages:
- template: devops/service-pipelines/service-pipeline-stages.yml@infrastructure-templates
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment