初期化が成功しないとJobが実行されないよう修正
This commit is contained in:
parent
004fc774dc
commit
bc56403f6a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user