From bc56403f6a412bfd916617193ec05ff7ab72ad7a Mon Sep 17 00:00:00 2001 From: "x.yumoto.k" Date: Tue, 25 Jul 2023 15:27:49 +0900 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=9C=9F=E5=8C=96=E3=81=8C=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E3=81=97=E3=81=AA=E3=81=84=E3=81=A8Job=E3=81=8C?= =?UTF-8?q?=E5=AE=9F=E8=A1=8C=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E3=82=88?= =?UTF-8?q?=E3=81=86=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- azure-pipelines.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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