developブランチにstage-タグが付けられた場合にビルドを行うpipelineを定義

This commit is contained in:
x.yumoto.k 2023-07-24 17:34:54 +09:00
parent 12f8575ccb
commit 3357e5fe2d

View File

@ -5,8 +5,8 @@
trigger:
branches:
include:
- "feature/2167/deploy-yaml"
exclude:
- "*"
tags:
include:
- "stage-*"
@ -14,11 +14,16 @@ trigger:
pool:
vmImage: ubuntu-latest
steps:
- script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch)
displayName: "Run a one-line script"
jobs:
- job: Build
pool:
vmImage: ubuntu-latest
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/stage-'), eq(variables['Build.SourceBranchName'], 'develop'))
steps:
- script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch)
displayName: "Run a one-line script"
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: "Run a multi-line script"
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: "Run Build"