generated from pagopa/template-payments-java-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.77 KB
/
flow-release.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
name: 🚀 Flow Release
on:
push:
branches:
- develop
- uat
- main
paths-ignore:
- 'CODEOWNERS'
- '**.md'
- '.**'
workflow_dispatch:
permissions:
packages: write
contents: write
jobs:
checkout:
name: 🔖 Checkout Repository
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
ref: ${{ github.ref_name }}
payments-flow-release:
name: 🚀 Release
runs-on: ubuntu-22.04
needs: checkout
steps:
- name: 🚀 release + docker
# https://github.com/pagopa/github-actions-template/releases/tag/v2.1.1
uses: pagopa/github-actions-template/payments-flow-release@e67e0ec4bb01d6cb5065e311ba0e1c92c49966a7
with:
current_branch: ${{ github.ref_name }}
azure-devops-trigger:
name: 🅰️ Azure DevOps Pipeline Trigger
needs: payments-flow-release
runs-on: ubuntu-22.04
steps:
- name: Trigger Azure DevOps Pipeline
# https://github.com/pagopa/github-actions-template/releases/tag/v2.1.0
uses: pagopa/github-actions-template/azure-devops-trigger-pipeline@cad30356d9046af6e7b0cee43db4cf919cc408f9
with:
enable_azure_devops_step: 'true'
azure_devops_project_url: 'https://dev.azure.com/pagopaspa/p4pa-projects'
azure_devops_pipeline_name: 'p4pa-payhub-deploy-aks.deploy'
azure_devops_pat: ${{ secrets.AZURE_DEVOPS_TOKEN }}
azure_template_parameters: |
{
"APPS_TOP": "[]",
"APPS_MID": "[p4pa-pdnd-services]",
"APPS_EXT": "[]",
"POSTMAN_BRANCH": "${{ github.ref_name }}",
"TRIGGER_MESSAGE": "p4pa-pdnd-services"
}