-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (54 loc) · 1.81 KB
/
ioweb_prod_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Continuous Integration on prod ioweb
on:
merge_group:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
paths:
- "src/domains/ioweb**"
- ".github/workflows/ioweb_prod**"
permissions:
id-token: write
contents: read
env:
DIR: "src/domains/ioweb"
AZURE_ENVIRONMENT: prod
jobs:
terraform_plan_job:
name: Terraform Plan
runs-on: self-hosted
environment: prod-ci
steps:
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
fetch-depth: 0
- name: Setup terraform
id: setup-version
# https://github.com/pagopa/terraform-install-action/commits/main
uses: pagopa/terraform-install-action@1f76f593176e58c423b88d72273a612ba7ba430b
- name: Terraform plan common
# from https://github.com/pagopa/terraform-plan-azure-action/commits/main
uses: pagopa/terraform-plan-azure-action@392aca28cbb33f5dc28215dfb72385e136fd813b
with:
client_id: ${{ secrets.ARM_CLIENT_ID }}
tenant_id: ${{ secrets.ARM_TENANT_ID }}
subscription_id: ${{ secrets.ARM_SUBSCRIPTION_ID }}
dir: ${{ env.DIR }}-common
azure_environment: prod
- name: Terraform plan app (weu-prod01)
# from https://github.com/pagopa/terraform-plan-azure-action/commits/main
uses: pagopa/terraform-plan-azure-action@392aca28cbb33f5dc28215dfb72385e136fd813b
with:
client_id: ${{ secrets.ARM_CLIENT_ID }}
tenant_id: ${{ secrets.ARM_TENANT_ID }}
subscription_id: ${{ secrets.ARM_SUBSCRIPTION_ID }}
dir: ${{ env.DIR }}-app
azure_environment: weu-prod01