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

[EC-318] Migrated pipelines & terraform code from io-infra #300

Merged
merged 26 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
31804e8
moved infra from io-infra and created pipelines
mamu0 Jun 20, 2024
377c5b2
moved infra from io-infra and created pipelines
mamu0 Jun 20, 2024
f3f8ec7
Added identity and repository
mamu0 Jun 21, 2024
f753cb3
updated repository tf and removed auto start for CI CD pipes
mamu0 Jun 21, 2024
9290a9c
fmt done and provider update
mamu0 Jul 2, 2024
6c505a9
removed github runer old and created folder prod
mamu0 Jul 3, 2024
898ffad
update state file name
Krusty93 Jul 3, 2024
5aa5f76
moved identities
mamu0 Jul 3, 2024
ac49ebb
update tf lock for identity
Krusty93 Jul 3, 2024
6bb3b71
fix: edited environment secrets and variables configuration for repos…
mamu0 Jul 24, 2024
adabfa5
fix: changed opex secret pointer
mamu0 Jul 24, 2024
fa0bf3e
fix: updated actions to use dx template, edited repository structure …
mamu0 Jul 29, 2024
ee37d4c
fix: minor refactor
mamu0 Jul 29, 2024
661c114
Merge branch 'main' into EC-318-pipeline-terraform-migration
silvicir Aug 30, 2024
ee37678
fix: minor
mamu0 Aug 30, 2024
af2b5c6
fix: removed -cd into env definition
mamu0 Aug 30, 2024
8dfac01
fix: resolved some comments
mamu0 Aug 30, 2024
09a881a
fix: minor
mamu0 Aug 30, 2024
5ab09ff
fix: edit CD identity for webapp
mamu0 Sep 2, 2024
2f88738
fix: renamed env
mamu0 Sep 2, 2024
8348d47
fix: synced terraform infrastructure in io-infra
mamu0 Sep 2, 2024
ea8f9e6
fix: minor on workflows
mamu0 Sep 2, 2024
0036d12
fix: edited sibs for identities
mamu0 Sep 2, 2024
4bd64c8
fix: added access policy for ci
mamu0 Sep 3, 2024
9ca6646
fix: removed old ref
mamu0 Sep 3, 2024
884d7a5
fix: minor
mamu0 Sep 3, 2024
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
13 changes: 8 additions & 5 deletions .github/workflows/deploy-backoffice-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on:
workflow_dispatch: {}

jobs:
deploy_workspace_to_azure:
deploy:
name: Deploy
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
with:
environment: io-p-sign-backoffice-app
workspace-name: io-sign-backoffice-app
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
secrets: inherit
with:
workspace_name: io-sign-backoffice-app
environment: app-prod
resource_group_name: io-p-sign-backend-rg
web_app_name: io-p-sign-backoffice-app
use_staging_slot: true
13 changes: 8 additions & 5 deletions .github/workflows/deploy-backoffice-func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on:
workflow_dispatch: {}

jobs:
deploy_workspace_to_azure:
deploy:
name: Deploy
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
with:
environment: io-p-sign-backoffice-func
workspace-name: io-sign-backoffice-func
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
secrets: inherit
with:
workspace_name: io-sign-backoffice-func
environment: app-prod
resource_group_name: io-p-sign-backend-rg
web_app_name: io-p-sign-backoffice-func
use_staging_slot: true
11 changes: 7 additions & 4 deletions .github/workflows/deploy-issuer-func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ on:
jobs:
deploy_workspace_to_azure:
name: Deploy
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
with:
environment: io-p-sign-issuer-func
workspace-name: io-func-sign-issuer
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
secrets: inherit
with:
workspace_name: io-func-sign-issuer
environment: app-prod
resource_group_name: io-p-sign-backend-rg
web_app_name: io-p-sign-issuer-func
use_staging_slot: true

# tag the current commit as "latest" in order to make the latest
# released version easily referenceable in the documentation
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/deploy-support-func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on:
workflow_dispatch: {}

jobs:
deploy_workspace_to_azure:
deploy:
name: Deploy
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
with:
environment: io-p-sign-support-func
workspace-name: io-func-sign-support
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
secrets: inherit
with:
workspace_name: io-func-sign-support
environment: app-prod
resource_group_name: io-p-sign-backend-rg
web_app_name: io-p-sign-support-func
use_staging_slot: true
13 changes: 8 additions & 5 deletions .github/workflows/deploy-user-func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on:
workflow_dispatch: {}

jobs:
deploy_workspace_to_azure:
deploy:
name: Deploy
uses: pagopa/io-std/.github/workflows/deploy-workspace.yaml@main
with:
environment: io-p-sign-user-func
workspace-name: io-func-sign-user
uses: pagopa/dx/.github/workflows/web_app_deploy.yaml@main
secrets: inherit
with:
workspace_name: io-func-sign-user
environment: app-prod
resource_group_name: io-p-sign-backend-rg
web_app_name: io-p-sign-user-func
use_staging_slot: true
10 changes: 7 additions & 3 deletions .github/workflows/opex_api_issuer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ jobs:
environment: prod
api-name: ${{ env.API_NAME }}
config: .opex/${{ env.API_NAME }}/env/prod/config.yaml
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ env.ARM_TENANT_ID }}
client-id: ${{ env.ARM_CLIENT_ID }}
subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
# from https://github.com/pagopa/opex-dashboard-azure-action/pkgs/container/opex-dashboard-azure-action
docker-version: sha256:7e454c1892b2aaf3717782c07a2fa01504db5cc7d07979fae863dfc00a9f0173
env:
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
11 changes: 8 additions & 3 deletions .github/workflows/opex_api_support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ jobs:
environment: prod
api-name: ${{ env.API_NAME }}
config: .opex/${{ env.API_NAME }}/env/prod/config.yaml
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ env.ARM_TENANT_ID }}
client-id: ${{ env.ARM_CLIENT_ID }}
subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
# from https://github.com/pagopa/opex-dashboard-azure-action/pkgs/container/opex-dashboard-azure-action
docker-version: sha256:7e454c1892b2aaf3717782c07a2fa01504db5cc7d07979fae863dfc00a9f0173
env:
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}

10 changes: 7 additions & 3 deletions .github/workflows/opex_api_user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ jobs:
environment: prod
api-name: ${{ env.API_NAME }}
config: .opex/${{ env.API_NAME }}/env/prod/config.yaml
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ env.ARM_TENANT_ID }}
client-id: ${{ env.ARM_CLIENT_ID }}
subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
# from https://github.com/pagopa/opex-dashboard-azure-action/pkgs/container/opex-dashboard-azure-action
docker-version: sha256:04d8ead53c772d23b094c2a395292dc159e6f2905e1b13b5f828f31eac6eb27f
env:
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
23 changes: 23 additions & 0 deletions .github/workflows/tf-code-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR - IO Sign TF Validation

on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
paths:
- "infra/resources/prod/**"
- ".github/workflows/tf-code-review.yaml"

jobs:
prod_itn_core_code_review:
uses: pagopa/dx/.github/workflows/infra_plan.yaml@main
name: Prod - Code Review
secrets: inherit
with:
environment: prod
base_path: infra/resources
19 changes: 19 additions & 0 deletions .github/workflows/tf-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PR - IO Sign TF Apply

on:
workflow_dispatch:
push:
branches:
- main
paths:
- "infra/resources/prod/**"
- ".github/workflows/tf-deploy.yaml"

jobs:
prod_itn_core_deploy:
uses: pagopa/dx/.github/workflows/infra_apply.yaml@main
name: Prod - Code Deploy
secrets: inherit
with:
environment: prod
base_path: infra/resources
48 changes: 0 additions & 48 deletions .identity/.gitignore

This file was deleted.

73 changes: 0 additions & 73 deletions .identity/.terraform.lock.hcl

This file was deleted.

18 changes: 0 additions & 18 deletions .identity/01_data.tf

This file was deleted.

28 changes: 0 additions & 28 deletions .identity/99_locals.tf

This file was deleted.

34 changes: 0 additions & 34 deletions .identity/99_main.tf

This file was deleted.

Loading
Loading