Skip to content

Commit

Permalink
Merge branch 'main' into ces-128-add-backend-l3
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-calabrese authored Oct 1, 2024
2 parents 2457282 + da359ff commit 936e41d
Show file tree
Hide file tree
Showing 121 changed files with 331 additions and 3,218 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/common_code_review.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: PR - Common TF Validation

# This pipeline starts automatically when a PR is opened.
#
# It is responsible for managing changes related solely to the NEW infrastructure.
# Therefore, it checks whether the changes have occurred only in the directories listed in "paths."
#
## NOTE: 'NEW infrastructure' refers to the new Terraform infrastructure located in the src/common/prod folder, which no longer requires the terraform.sh script to be applied.
##
# It is responsible for managing changes related to "common" infrastructure,

on:
workflow_dispatch:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/common_deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: PR - Common TF Apply
name: Release - Common TF Apply

# This pipeline starts automatically when a PR is merged into 'main'.
#
# It is responsible for managing changes related solely to the NEW infrastructure,
# ensuring that changes have occurred exclusively within the directories listed in "paths."
#
## NOTE: 'NEW infrastructure' refers to the new Terraform infrastructure located in the src/common/prod folder, which no longer requires the terraform.sh script to be applied.
# It is responsible for managing changes related to "common" infrastructure,
#
# This pipeline first executes a plan and then an apply, which must be approved by the team.

on:
on:
workflow_dispatch:
push:
branches:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/core_code_review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ name: PR - Core TF Validation

# This pipeline starts automatically when a PR is opened.
#
# It is responsible for managing changes related solely to the NEW infrastructure.
# Therefore, it checks whether the changes have occurred only in the directories listed in "paths."
#
## NOTE: 'NEW infrastructure' refers to the new Terraform infrastructure located in the src/core/prod folder, which no longer requires the terraform.sh script to be applied.
# It is responsible for managing changes related to "core" infrastructure,

on:
workflow_dispatch:
Expand Down
70 changes: 0 additions & 70 deletions .github/workflows/core_code_review_weu.yaml

This file was deleted.

9 changes: 3 additions & 6 deletions .github/workflows/core_deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: PR - Core TF Apply
name: Release - Core TF Apply

# This pipeline starts automatically when a PR is merged into 'main'.
#
# It is responsible for managing changes related solely to the NEW infrastructure,
# ensuring that changes have occurred exclusively within the directories listed in "paths."
#
## NOTE: 'NEW infrastructure' refers to the new Terraform infrastructure located in the src/core/prod folder, which no longer requires the terraform.sh script to be applied.
# It is responsible for managing changes related to "core" infrastructure,
#
# This pipeline first executes a plan and then an apply, which must be approved by the team.

on:
on:
workflow_dispatch:
push:
branches:
Expand Down
151 changes: 0 additions & 151 deletions .github/workflows/core_deploy_weu.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/legacy_apim_code_review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR - Legacy APIM TF Validation

# This pipeline starts automatically when a PR is opened.
#
# It is responsible for managing only a couple of legacy API groups on APIM.

on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
paths:
- "src/legacy-apim/**"
- ".github/workflows/legacy_apim_code_review.yaml"

jobs:
prod_legacy_apim_code_review:
uses: pagopa/dx/.github/workflows/infra_plan.yaml@main
name: Prod - Code Review
secrets: inherit
with:
environment: prod
base_path: src/legacy-apim
26 changes: 26 additions & 0 deletions .github/workflows/legacy_apim_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release - Legacy APIM TF Apply

# This pipeline starts automatically when a PR is merged into 'main'.
#
# It is responsible for managing only a couple of legacy API groups on APIM.
#
# This pipeline will use the terraform.sh script, which first executes a plan and then an apply,
# where the latter must be approved by the team.

on:
workflow_dispatch:
push:
branches:
- main
paths:
- "src/legacy-apim/**"
- ".github/workflows/legacy_apim_deploy.yaml"

jobs:
prod_legacy_apim_deploy:
uses: pagopa/dx/.github/workflows/infra_apply.yaml@main
name: Prod - Code Deploy
secrets: inherit
with:
environment: prod
base_path: src/legacy-apim
3 changes: 0 additions & 3 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
# map value with path to domain root and path to config entry point
declare -A newmap
newmap[src/core]="."
newmap[src/.template-app]="."
newmap[src/.template-common]="."
newmap[src/aks-platform]="."
newmap[src/domains/cgn]="./prod"
newmap[src/domains/selfcare]="./prod/westeurope"
Expand Down
Loading

0 comments on commit 936e41d

Please sign in to comment.