generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (66 loc) · 2.28 KB
/
release_ms.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
name: Deploy onboarding ms
on:
push:
branches:
- main
- releases/*
paths:
- "apps/onboarding-ms/**"
- "infra/container_apps/onboarding-ms/**"
- "apps/pom.xml"
- "pom.xml"
workflow_dispatch:
inputs:
env:
type: choice
description: Environment
options:
- dev
- uat
- prod
jobs:
release_dev:
uses: pagopa/selfcare-commons/.github/workflows/call_release_docker.yml@main
name: '[Dev] OnBoarding ms Release'
if: ${{ (startsWith(github.ref_name, 'releases/') != true && inputs.env == null) || inputs.env == 'dev' }}
secrets: inherit
with:
environment: dev
tf_environment: dev
dir: 'infra/container_apps/onboarding-ms'
dockerfile_path: ./apps/onboarding-ms/Dockerfile
docker_image_name: pagopa/selfcare-onboarding-ms
path_openapi_docs: ./apps/onboarding-ms/src/main/docs/openapi.json
release_uat:
uses: pagopa/selfcare-commons/.github/workflows/call_release_docker.yml@main
name: '[UAT] OnBoarding ms Release'
if: ${{ (startsWith(github.ref_name, 'releases/') == true && inputs.env == null) || inputs.env == 'uat' }}
secrets: inherit
with:
environment: uat
tf_environment: uat
dir: 'infra/container_apps/onboarding-ms'
dockerfile_path: ./apps/onboarding-ms/Dockerfile
docker_image_name: pagopa/selfcare-onboarding-ms
path_openapi_docs: ./apps/onboarding-ms/src/main/docs/openapi.json
release_prod:
uses: pagopa/selfcare-commons/.github/workflows/call_release_docker.yml@main
name: '[Prod] OnBoarding ms Release'
if: ${{ inputs.env == 'prod' }}
secrets: inherit
with:
environment: prod
tf_environment: prod
dir: 'infra/container_apps/onboarding-ms'
dockerfile_path: ./apps/onboarding-ms/Dockerfile
docker_image_name: pagopa/selfcare-onboarding-ms
path_openapi_docs: ./apps/onboarding-ms/src/main/docs/openapi.json
promote_release:
name: 'Promote prerelase release'
runs-on: ubuntu-20.04
needs: [release_prod]
steps:
- uses: pagopa/selfcare-commons/github-actions-template/promote-release@main
with:
github_path_token: ${{ secrets.GH_PAT_VARIABLES }}
release_version: ${{ vars.CURRENT_UAT_VERSION }}