Skip to content

Commit

Permalink
Merge pull request #3 from pagopa/fix-cd-pipeline
Browse files Browse the repository at this point in the history
Fix deploy pipeline
  • Loading branch information
aomegax authored Aug 22, 2023
2 parents bdf1292 + f716d62 commit 666beea
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>it.gov.pagopa</groupId>
<artifactId>nodoretotablestorage</artifactId>
<version>0.1.1-15</version>
<version>0.1.2</version>
<packaging>jar</packaging>

<name>Nodo RE to Table Storage Fn</name>
Expand Down

0 comments on commit 666beea

Please sign in to comment.