Skip to content

Commit 468acc0

Browse files
authored
[EC-318] Migrated pipelines & terraform code from io-infra (#300)
1 parent ee95df3 commit 468acc0

File tree

83 files changed

+6395
-584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+6395
-584
lines changed

.github/workflows/deploy-backoffice-app.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on:
44
workflow_dispatch: {}
55

66
jobs:
7-
deploy_workspace_to_azure:
7+
deploy:
88
name: Deploy
9-
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
10-
with:
11-
environment: io-p-sign-backoffice-app
12-
workspace-name: io-sign-backoffice-app
9+
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
1310
secrets: inherit
11+
with:
12+
workspace_name: io-sign-backoffice-app
13+
environment: app-prod
14+
resource_group_name: io-p-sign-backend-rg
15+
web_app_name: io-p-sign-backoffice-app
16+
use_staging_slot: true

.github/workflows/deploy-backoffice-func.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on:
44
workflow_dispatch: {}
55

66
jobs:
7-
deploy_workspace_to_azure:
7+
deploy:
88
name: Deploy
9-
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
10-
with:
11-
environment: io-p-sign-backoffice-func
12-
workspace-name: io-sign-backoffice-func
9+
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
1310
secrets: inherit
11+
with:
12+
workspace_name: io-sign-backoffice-func
13+
environment: app-prod
14+
resource_group_name: io-p-sign-backend-rg
15+
web_app_name: io-p-sign-backoffice-func
16+
use_staging_slot: true

.github/workflows/deploy-issuer-func.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ on:
66
jobs:
77
deploy_workspace_to_azure:
88
name: Deploy
9-
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
10-
with:
11-
environment: io-p-sign-issuer-func
12-
workspace-name: io-func-sign-issuer
9+
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
1310
secrets: inherit
11+
with:
12+
workspace_name: io-func-sign-issuer
13+
environment: app-prod
14+
resource_group_name: io-p-sign-backend-rg
15+
web_app_name: io-p-sign-issuer-func
16+
use_staging_slot: true
1417

1518
# tag the current commit as "latest" in order to make the latest
1619
# released version easily referenceable in the documentation

.github/workflows/deploy-support-func.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on:
44
workflow_dispatch: {}
55

66
jobs:
7-
deploy_workspace_to_azure:
7+
deploy:
88
name: Deploy
9-
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
10-
with:
11-
environment: io-p-sign-support-func
12-
workspace-name: io-func-sign-support
9+
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
1310
secrets: inherit
11+
with:
12+
workspace_name: io-func-sign-support
13+
environment: app-prod
14+
resource_group_name: io-p-sign-backend-rg
15+
web_app_name: io-p-sign-support-func
16+
use_staging_slot: true

.github/workflows/deploy-user-func.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on:
44
workflow_dispatch: {}
55

66
jobs:
7-
deploy_workspace_to_azure:
7+
deploy:
88
name: Deploy
9-
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
10-
with:
11-
environment: io-p-sign-user-func
12-
workspace-name: io-func-sign-user
9+
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
1310
secrets: inherit
11+
with:
12+
workspace_name: io-func-sign-user
13+
environment: app-prod
14+
resource_group_name: io-p-sign-backend-rg
15+
web_app_name: io-p-sign-user-func
16+
use_staging_slot: true

.github/workflows/opex_api_issuer.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ jobs:
4040
environment: prod
4141
api-name: ${{ env.API_NAME }}
4242
config: .opex/${{ env.API_NAME }}/env/prod/config.yaml
43-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
44-
client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
45-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
43+
tenant-id: ${{ env.ARM_TENANT_ID }}
44+
client-id: ${{ env.ARM_CLIENT_ID }}
45+
subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
4646
# from https://github.com/pagopa/opex-dashboard-azure-action/pkgs/container/opex-dashboard-azure-action
4747
docker-version: sha256:7e454c1892b2aaf3717782c07a2fa01504db5cc7d07979fae863dfc00a9f0173
48+
env:
49+
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
50+
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
51+
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}

.github/workflows/opex_api_support.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ jobs:
3838
environment: prod
3939
api-name: ${{ env.API_NAME }}
4040
config: .opex/${{ env.API_NAME }}/env/prod/config.yaml
41-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
42-
client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
43-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
41+
tenant-id: ${{ env.ARM_TENANT_ID }}
42+
client-id: ${{ env.ARM_CLIENT_ID }}
43+
subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
4444
# from https://github.com/pagopa/opex-dashboard-azure-action/pkgs/container/opex-dashboard-azure-action
4545
docker-version: sha256:7e454c1892b2aaf3717782c07a2fa01504db5cc7d07979fae863dfc00a9f0173
46+
env:
47+
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
48+
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
49+
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
50+

.github/workflows/opex_api_user.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ jobs:
3838
environment: prod
3939
api-name: ${{ env.API_NAME }}
4040
config: .opex/${{ env.API_NAME }}/env/prod/config.yaml
41-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
42-
client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
43-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
41+
tenant-id: ${{ env.ARM_TENANT_ID }}
42+
client-id: ${{ env.ARM_CLIENT_ID }}
43+
subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
4444
# from https://github.com/pagopa/opex-dashboard-azure-action/pkgs/container/opex-dashboard-azure-action
4545
docker-version: sha256:04d8ead53c772d23b094c2a395292dc159e6f2905e1b13b5f828f31eac6eb27f
46+
env:
47+
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
48+
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
49+
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PR - IO Sign TF Validation
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types:
7+
- opened
8+
- edited
9+
- synchronize
10+
- reopened
11+
- ready_for_review
12+
paths:
13+
- "infra/resources/prod/**"
14+
- ".github/workflows/tf-code-review.yaml"
15+
16+
jobs:
17+
prod_itn_core_code_review:
18+
uses: pagopa/dx/.github/workflows/infra_plan.yaml@main
19+
name: Prod - Code Review
20+
secrets: inherit
21+
with:
22+
environment: prod
23+
base_path: infra/resources

.github/workflows/tf-deploy.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PR - IO Sign TF Apply
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- "infra/resources/prod/**"
10+
- ".github/workflows/tf-deploy.yaml"
11+
12+
jobs:
13+
prod_itn_core_deploy:
14+
uses: pagopa/dx/.github/workflows/infra_apply.yaml@main
15+
name: Prod - Code Deploy
16+
secrets: inherit
17+
with:
18+
environment: prod
19+
base_path: infra/resources

0 commit comments

Comments
 (0)