Skip to content

Commit

Permalink
[PAGOPA-701] fix deploy approval
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-ang committed Apr 28, 2023
1 parent 9004edf commit e2f4af0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,34 @@ stages:

- script: |
echo "##vso[task.setvariable variable=version;isOutput=true]$(pomversion.next)"
name: dockerTag
name: dockerTag
- stage: deployApprovalPROD
condition: eq('${{ parameters.ENV }}', 'prod')
dependsOn: deploy
pool:
vmImage: "ubuntu-latest"
jobs:
- job: waitForApprovalPROD
displayName: waiting for approval
pool: server
timeoutInMinutes: 4320 # 3 days
steps:
- task: ManualValidation@0
displayName: Manual Approval
inputs:
onTimeout: "reject"

- job: completeProdDeployFn
displayName: complete prod function deploy
dependsOn: waitForApprovalPROD
steps:
# deploy functions - swap
- task: AzureAppServiceManage@0
displayName: Swapping App Service Deploy
inputs:
ConnectedServiceName: $(AZURE_SUBSCRIPTION)
WebAppName: "${{variables.APP_NAME}}-fn-gpd-analysis"
ResourceGroupName: $(RESOURCE_GROUP)
SourceSlot: staging
SwapWithProduction: true
Slot: production

0 comments on commit e2f4af0

Please sign in to comment.