diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 83402af..734dbca 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,8 +4,8 @@ trigger: - stage-* jobs: -- job: Job_1 - displayName: Dictation App Service Deploy +- job: initialize + displayName: Initialize pool: vmImage: ubuntu-latest steps: @@ -20,7 +20,17 @@ jobs: echo "This commit is not in the main branch." exit 1 fi - displayName: 'タグが付けられたCommitがdevelopブランチに存在するか確認' + displayName: 'タグが付けられたCommitがmainブランチに存在するか確認' +- job: Job_1 + dependsOn: initialize + condition: succeeded('initialize') + displayName: Dictation App Service Deploy + pool: + vmImage: ubuntu-latest + steps: + - checkout: self + clean: true + fetchDepth: 1 - task: Npm@1 displayName: npm ci inputs: @@ -54,6 +64,8 @@ jobs: action: Push an image imageName: $(Build.Repository.Name)/dictation:latest - job: Job_2 + dependsOn: initialize + condition: succeeded('initialize') displayName: Dictation Static App Service Deploy pool: vmImage: ubuntu-latest @@ -83,6 +95,8 @@ jobs: verbose: false azure_static_web_apps_api_token: $(static_dictation_deployment_token) - job: Job_3 + dependsOn: initialize + condition: succeeded('initialize') displayName: DB migration dependsOn: - Job_1