Skip to content

Deploy PNPG - user-group-ms #49

Deploy PNPG - user-group-ms

Deploy PNPG - user-group-ms #49

name: Deploy PNPG - user-group-ms
on:
push:
branches:
- main
- releases/*
paths:
- "apps/user-group-ms/**"
- "infra/container_apps/user-group-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] User Group ms 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/container_apps/user-group-ms'
dockerfile_path: ./apps/user-group-ms/Dockerfile
docker_image_name: pagopa/selfcare-user-group-ms
path_openapi_docs: ./apps/user-group-ms/app/src/main/docs/openapi.json
release_uat:
uses: pagopa/selfcare-commons/.github/workflows/call_release_docker.yml@main
name: '[UAT] User Group ms 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/container_apps/user-group-ms'
dockerfile_path: ./apps/user-group-ms/Dockerfile
docker_image_name: pagopa/selfcare-user-group-ms
path_openapi_docs: ./apps/user-group-ms/app/src/main/docs/openapi.json
release_prod:
uses: pagopa/selfcare-commons/.github/workflows/call_release_docker.yml@main
name: '[Prod] User Group ms Release'
if: ${{ inputs.env == 'prod' }}
secrets: inherit
with:
environment: prod
tf_environment: prod-pnpg
dir: 'infra/container_apps/user-group-ms'
dockerfile_path: ./apps/user-group-ms/Dockerfile
docker_image_name: pagopa/selfcare-user-group-ms
path_openapi_docs: ./apps/user-group-ms/app/src/main/docs/openapi.json