Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Jun 25, 2024
2 parents 978ac57 + 1360e3e commit 3cf1de6
Show file tree
Hide file tree
Showing 10 changed files with 3,493 additions and 12,144 deletions.
31 changes: 25 additions & 6 deletions .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ parameters:
- name: APP_SERVICE_RESOURCE_GROUP
displayName: App Service Resource Group
type: string
- name: DOMAIN
displayName: App Service Resource Group
type: string
default: weu-shared
values:
- weu-shared
- itn-printit



Expand All @@ -40,22 +47,34 @@ variables:
# RESOURCE_GROUP: $(DEV_WEB_APP_RESOURCE_GROUP_NAME)
# APP_NAME: $(DEV_WEB_APP_NAME)
STAGE: "d"
dockerRegistryServiceConnection: $(DEV_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(DEV_CONTAINER_NAMESPACE)
${{ if eq(parameters['DOMAIN'], 'weu-shared') }}:
dockerRegistryServiceConnection: $(DEV_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(DEV_CONTAINER_NAMESPACE)
${{ if eq(parameters['DOMAIN'], 'itn-printit') }}:
dockerRegistryServiceConnection: $(ITN_DEV_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(ITN_DEV_CONTAINER_NAMESPACE)
${{ if eq(parameters['ENV'], 'uat') }}:
AZURE_SUBSCRIPTION: $(UAT_AZURE_SUBSCRIPTION)
# RESOURCE_GROUP: $(UAT_WEB_APP_RESOURCE_GROUP_NAME)
# APP_NAME: $(UAT_WEB_APP_NAME)
STAGE: "u"
dockerRegistryServiceConnection: $(UAT_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(UAT_CONTAINER_NAMESPACE)
${{ if eq(parameters['DOMAIN'], 'weu-shared') }}:
dockerRegistryServiceConnection: $(UAT_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(UAT_CONTAINER_NAMESPACE)
${{ if eq(parameters['DOMAIN'], 'itn-printit') }}:
dockerRegistryServiceConnection: $(ITN_UAT_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(ITN_UAT_CONTAINER_NAMESPACE)
${{ if eq(parameters['ENV'], 'prod') }}:
AZURE_SUBSCRIPTION: $(PROD_AZURE_SUBSCRIPTION)
# RESOURCE_GROUP: $(PROD_WEB_APP_RESOURCE_GROUP_NAME)
# APP_NAME: $(PROD_WEB_APP_NAME)
STAGE: "p"
dockerRegistryServiceConnection: $(PROD_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(PROD_CONTAINER_NAMESPACE)
${{ if eq(parameters['DOMAIN'], 'weu-shared') }}:
dockerRegistryServiceConnection: $(PROD_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(PROD_CONTAINER_NAMESPACE)
${{ if eq(parameters['DOMAIN'], 'itn-printit') }}:
dockerRegistryServiceConnection: $(ITN_PROD_CONTAINER_REGISTRY_SERVICE_CONN)
dockerNamespace: $(ITN_PROD_CONTAINER_NAMESPACE)
${{ if eq(variables['Build.SourceBranchName'], 'merge') }}:
SOURCE_BRANCH: "main" # force to main branch
${{ if ne(variables['Build.SourceBranchName'], 'merge') }}:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
"TYPE": "node",
"APP_SERVICE_NAME": "pagopa-${{ env.SHORT_ENV }}-${{inputs.domain}}-app-pdf-engine${{ env.SHORT_ENV == 'prod' && '-ha' || '' }}",
"APP_SERVICE_RESOURCE_GROUP": "pagopa-${{ env.SHORT_ENV }}-${{inputs.domain}}-pdf-engine-rg",
"DOMAIN": "${{inputs.domain}}"
}
azure-pipeline-variables: '{"system.debug": "true"}'

Expand Down
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: pagopapdfengine
description: Microservice description
type: application
version: 0.119.0
appVersion: 2.10.9
version: 0.122.0
appVersion: 2.10.13
dependencies:
- name: microservice-chart
version: 2.4.0
Expand Down
2 changes: 1 addition & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-pdf-engine
tag: "2.10.9"
tag: "2.10.13"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-pdf-engine
tag: "2.10.9"
tag: "2.10.13"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-pdf-engine
tag: "2.10.9"
tag: "2.10.13"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
livenessProbe:
Expand Down
Loading

0 comments on commit 3cf1de6

Please sign in to comment.