Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable uat #80

Merged
merged 2 commits into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .devops/code-review-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pr:
autoCancel: true
autoCancel: false # prevent terraform state lock on new commits
branches:
include:
- main
Expand Down Expand Up @@ -70,27 +70,27 @@ stages:
ENVIRONMENT: dev
WORKINGDIR: 'src/core'

# - stage: UAT
# dependsOn: []
# condition: and(succeeded(), eq(${{parameters.UAT}}, true))
# pool:
# name: selfcare-uat-linux
# jobs:
# - job: terraform_install
# steps:
# # 1. Install terraform and terragrunt
# - template: templates/terraform-setup/template.yaml@terraform
# - job: terraform_plan
# dependsOn: terraform_install
# timeoutInMinutes: $[variables.TIME_OUT]
# steps:
# - checkout: self
# # 2. Run terragrunt plan
# - template: templates/terraform-plan/template.yaml@terraform
# parameters:
# SUBSCRIPTION: UAT-SELFCARE-SERVICE-CONN
# ENVIRONMENT: uat
# WORKINGDIR: 'src/core'
- stage: UAT
dependsOn: []
condition: and(succeeded(), eq(${{parameters.UAT}}, true))
pool:
name: selfcare-uat-linux
jobs:
- job: terraform_install
steps:
# 1. Install terraform and terragrunt
- template: templates/terraform-setup/template.yaml@terraform
- job: terraform_plan
dependsOn: terraform_install
timeoutInMinutes: $[variables.TIME_OUT]
steps:
- checkout: self
# 2. Run terragrunt plan
- template: templates/terraform-plan/template.yaml@terraform
parameters:
SUBSCRIPTION: UAT-SELFCARE-SERVICE-CONN
ENVIRONMENT: uat
WORKINGDIR: 'src/core'

- stage: PROD
dependsOn: []
Expand Down
86 changes: 43 additions & 43 deletions .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,50 +85,50 @@ stages:
ENVIRONMENT: dev
WORKINGDIR: 'src/core'

# # UAT
# - stage: plan_UAT
# dependsOn: []
# condition: and(succeeded(), eq(${{parameters.UAT}}, true))
# pool:
# name: selfcare-uat-linux
# jobs:
# - job: plan
# timeoutInMinutes: $[variables.TIME_OUT]
# steps:
# # 1. Install terraform
# - template: templates/terraform-setup/template.yaml@terraform
# # 2. Run terraform plan
# - template: templates/terraform-plan/template.yaml@terraform
# parameters:
# SUBSCRIPTION: UAT-SELFCARE-SERVICE-CONN
# ENVIRONMENT: uat
# WORKINGDIR: 'src/core'
# UAT
- stage: plan_UAT
dependsOn: []
condition: and(succeeded(), eq(${{parameters.UAT}}, true))
pool:
name: selfcare-uat-linux
jobs:
- job: plan
timeoutInMinutes: $[variables.TIME_OUT]
steps:
# 1. Install terraform
- template: templates/terraform-setup/template.yaml@terraform
# 2. Run terraform plan
- template: templates/terraform-plan/template.yaml@terraform
parameters:
SUBSCRIPTION: UAT-SELFCARE-SERVICE-CONN
ENVIRONMENT: uat
WORKINGDIR: 'src/core'

# - stage: apply_UAT
# dependsOn: [plan_UAT]
# condition: and(succeeded(), eq(${{parameters.UAT}}, true))
# pool:
# name: selfcare-uat-linux
# jobs:
# # - job: init
# # steps:
# # # 1. Install terraform
# # - template: templates/terraform-setup/template.yaml@terraform
# - deployment: apply
# continueOnError: false
# # dependsOn: init
# environment: 'UAT'
# strategy:
# runOnce:
# deploy:
# steps:
# - checkout: self
# # 3. Run terraform apply
# - template: templates/terraform-apply/template.yaml@terraform
# parameters:
# SUBSCRIPTION: UAT-SELFCARE-SERVICE-CONN
# ENVIRONMENT: uat
# WORKINGDIR: 'src/core'
- stage: apply_UAT
dependsOn: [plan_UAT]
condition: and(succeeded(), eq(${{parameters.UAT}}, true))
pool:
name: selfcare-uat-linux
jobs:
# - job: init
# steps:
# # 1. Install terraform
# - template: templates/terraform-setup/template.yaml@terraform
- deployment: apply
continueOnError: false
# dependsOn: init
environment: 'UAT'
strategy:
runOnce:
deploy:
steps:
- checkout: self
# 3. Run terraform apply
- template: templates/terraform-apply/template.yaml@terraform
parameters:
SUBSCRIPTION: UAT-SELFCARE-SERVICE-CONN
ENVIRONMENT: uat
WORKINGDIR: 'src/core'

# PROD
- stage: plan_PROD
Expand Down