generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (73 loc) · 2.73 KB
/
release_onboarding.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Release Onboarding
on:
workflow_dispatch:
inputs:
env:
type: choice
description: Environment
options:
- dev
- uat
- prod
branch:
type: string
description: Branch name
required: true
jobs:
create_branch:
name: 'Create Release Branch'
runs-on: ubuntu-24.04
permissions:
contents: write
actions: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@1fb4a623cfbc661771f7005e00e2cf74acf32037 # v4.2.2
name: Checkout
with:
ref: main
fetch-depth: 0
- name: Get branch name
id: get_branch
run: echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_OUTPUT
- name: Trigger Functions Infra Release
run: |
gh workflow run release_functions_infra.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger Mongo Infra Release
run: |
gh workflow run release_mongo_infra.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger PNPG Functions Infra Release
run: |
gh workflow run release_functions_pnpg_infra.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger PNPG Mongo Infra Release
run: |
gh workflow run release_mongo_pnpg_infra.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger Functions Release
run: |
gh workflow run release_functions.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger Onboarding ms Release
run: |
gh workflow run release_ms.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger Onboarding CDC Release
run: |
gh workflow run release_cdc.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger PNPG Functions Release
run: |
gh workflow run release_pnpg_functions.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger PNPG Onboarding ms Release
run: |
gh workflow run release_pnpg_ms.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}
- name: Trigger PNPG Onboarding CDC Release
run: |
gh workflow run release_pnpg_cdc.yml \
--ref ${{ steps.get_branch.outputs.BRANCH_NAME }} -f env=${{ inputs.env }}