From b5ad8f35cb49292cf2adfc47d7e23f45639c5514 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 22 Aug 2023 13:41:27 +0200 Subject: [PATCH 1/2] added staging start/stop --- .devops/deploy-pipelines.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.devops/deploy-pipelines.yml b/.devops/deploy-pipelines.yml index 9ba215e..ca8dfa8 100644 --- a/.devops/deploy-pipelines.yml +++ b/.devops/deploy-pipelines.yml @@ -149,6 +149,17 @@ stages: jobs: - job: deployJava steps: + - task: AzureCLI@2 + displayName: Start staging slot [PROD] + condition: eq('${{ parameters.ENV }}', 'prod') + inputs: + azureSubscription: $(AZURE_SUBSCRIPTION) + addSpnToEnvironment: true + scriptType: 'bash' + scriptLocation: 'inlineScript' + failOnStandardError: true + inlineScript: | + az functionapp start --name ${{variables.APP_NAME}}-nodo-re-ts-fn --resource-group $(RESOURCE_GROUP) --slot staging # deploy fn - task: AzureFunctionAppContainer@1 displayName: Deploy Function App [DEV|UAT] @@ -203,3 +214,15 @@ stages: SourceSlot: staging SwapWithProduction: true Slot: production + # to prevent staging invocation + - task: AzureCLI@2 + displayName: Stop staging slot [PROD] + condition: eq('${{ parameters.ENV }}', 'prod') + inputs: + azureSubscription: $(AZURE_SUBSCRIPTION) + addSpnToEnvironment: true + scriptType: 'bash' + scriptLocation: 'inlineScript' + failOnStandardError: true + inlineScript: | + az functionapp stop --name ${{variables.APP_NAME}}-nodo-re-ts-fn --resource-group $(RESOURCE_GROUP) --slot staging From f716d62620630e26a658524d67065cb79f86eaf7 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 22 Aug 2023 13:18:02 +0000 Subject: [PATCH 2/2] Bump version [skip ci] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 42ccc5e..44b39d4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa nodoretotablestorage - 0.1.1-15 + 0.1.2 jar Nodo RE to Table Storage Fn