generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.17 KB
/
release_mongo_pnpg_infra.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
name: Deploy PNPG mongo infra
on:
push:
branches:
- main
- releases/*
paths:
- './infra/mongo'
workflow_dispatch:
inputs:
env:
type: choice
description: Environment
options:
- dev
- uat
- prod
jobs:
release_dev:
uses: ./.github/workflows/call_release_infra.yml
name: '[Dev] Mongo Infra Release'
if: ${{ (startsWith(github.ref_name, 'releases/') != true && inputs.env == null) || inputs.env == 'dev' }}
secrets: inherit
with:
environment: dev
tf_environment: dev-pnpg
dir: ./infra/mongo
release_uat:
uses: ./.github/workflows/call_release_infra.yml
name: '[UAT] Mongo Infra Release'
if: ${{ (startsWith(github.ref_name, 'releases/') == true && inputs.env == null) || inputs.env == 'uat' }}
secrets: inherit
with:
environment: uat
tf_environment: uat-pnpg
dir: ./infra/mongo
release_prod:
uses: ./.github/workflows/call_release_infra.yml
name: '[Prod] Mongo Infra Release'
if: ${{ inputs.env == 'prod' }}
secrets: inherit
with:
environment: prod
tf_environment: prod-pnpg
dir: ./infra/mongo