diff --git a/azure-pipelines-production.yml b/azure-pipelines-production.yml index c08aa1b..87f8442 100644 --- a/azure-pipelines-production.yml +++ b/azure-pipelines-production.yml @@ -26,6 +26,8 @@ jobs: # fi # displayName: 'タグが付けられたCommitがmainブランチに存在するか確認' - job: backend_deploy + dependsOn: initialize + condition: succeeded('initialize') displayName: Backend Deploy pool: name: odms-deploy-pipeline @@ -44,6 +46,8 @@ jobs: DockerRepository: '$(Build.Repository.Name)/staging/dictation' DockerImageTag: '$(Build.SourceVersion)' - job: frontend_deploy + dependsOn: backend_deploy + condition: succeeded('backend_deploy') displayName: Deploy Frontend Files variables: storageAccountName: saomdspipeline @@ -89,12 +93,9 @@ jobs: verbose: false azure_static_web_apps_api_token: $(STATIC_DICTATION_DEPLOYMENT_TOKEN) - job: migration - condition: succeeded('initialize') + dependsOn: frontend_deploy + condition: succeeded('frontend_deploy') displayName: DB migration - dependsOn: - - initialize - - backend_deploy - - frontend_deploy pool: name: db-migrate-pipelines steps: