diff --git a/azure-pipelines-production.yml b/azure-pipelines-production.yml index ff18972..ef0faa8 100644 --- a/azure-pipelines-production.yml +++ b/azure-pipelines-production.yml @@ -83,9 +83,24 @@ jobs: is_static_export: false verbose: false azure_static_web_apps_api_token: $(STATIC_DICTATION_DEPLOYMENT_TOKEN) -- job: smoke_test +- job: function_deploy dependsOn: frontend_deploy condition: succeeded('frontend_deploy') + displayName: function Deploy + pool: + vmImage: ubuntu-latest + steps: + - checkout: self + clean: true + fetchDepth: 1 + - task: AzureFunctionAppContainer@1 + inputs: + azureSubscription: 'omds-service-connection-prod' + appName: 'func-odms-dictation-prod' + imageName: 'crodmsregistrymaintenance.azurecr.io/odmscloud/staging/dictation_function:$(Build.SourceVersion)' +- job: smoke_test + dependsOn: function_deploy + condition: succeeded('function_deploy') displayName: 'smoke test' pool: name: odms-deploy-pipeline