Skip to content

Commit 7f54089

Browse files
authored
[EC-296] Update CI/CD infra paths and templates (#38)
1 parent 77f35b7 commit 7f54089

File tree

8 files changed

+48
-315
lines changed

8 files changed

+48
-315
lines changed

.github/workflows/infra_plan.yaml

-166
This file was deleted.

.github/workflows/pr_infra.yaml

+2-6
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@ on:
1010
- reopened
1111
- ready_for_review
1212
paths:
13-
# Trigger the workflow when resources are modified
1413
- "infra/resources"
15-
# Trigger the workflow when the involved workflows are modified
16-
- ".github/workflows/pr_infra.yaml"
17-
- ".github/workflows/templates/infra_**"
14+
- ".github/workflows/**_infra.yaml"
1815

1916
jobs:
2017
code_review_prod:
21-
uses: ./.github/workflows/infra_plan.yaml
18+
uses: pagopa/dx/.github/workflows/infra_plan.yaml@main
2219
name: Code Review Infrastructure Plan
2320
secrets: inherit
2421
with:
2522
environment: prod
26-
region: westeurope
2723
base_path: infra/resources

.github/workflows/release_infra.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Infrastructure
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- "infra/resources"
10+
11+
jobs:
12+
release_prod:
13+
uses: pagopa/dx/.github/workflows/infra_apply.yaml@main
14+
name: Release Infrastructure
15+
secrets: inherit
16+
with:
17+
environment: prod
18+
base_path: infra/resources

.github/workflows/repository_builder.yaml

-115
This file was deleted.

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
* @pagopa/io-auth-n-identity-backend
44

55
/infra/ @pagopa/engineering-team-cloud-eng @pagopa/io-auth-n-identity-backend
6+
/.github/ @pagopa/engineering-team-cloud-eng @pagopa/io-auth-n-identity-backend

infra/resources/prod/.terraform.lock.hcl

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/resources/prod/westeurope/main.tf infra/resources/prod/main.tf

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ terraform {
33
required_providers {
44
azurerm = {
55
source = "hashicorp/azurerm"
6-
version = ">= 3.96.0"
6+
version = "<= 3.104.0"
77
}
8-
98
}
109

1110
backend "azurerm" {
1211
resource_group_name = "terraform-state-rg"
1312
storage_account_name = "tfinfprodio"
1413
container_name = "terraform-state"
15-
key = "io-auth-n-identity-domain.resources.prod.westeurope.tfstate"
14+
key = "io-auth-n-identity-domain.resources.prod.tfstate"
1615
}
1716
}
1817

infra/resources/prod/westeurope/.terraform.lock.hcl

-25
This file was deleted.

0 commit comments

Comments
 (0)