aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-30 12:17:18 -0700
committerGravatar MarkKoz <[email protected]>2019-06-30 15:21:43 -0700
commit7cedf0c308a74bcb59f65d7d90978d3c7b43bf85 (patch)
tree9b04097a3df9a29be2b3711bcac25e3c2dd4f050
parentCI: refactor steps (diff)
CI: use multi-line folded scalars for long conditions
-rw-r--r--azure-pipelines.yml26
1 files changed, 23 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 3d2c9e3..591f87f 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -139,7 +139,14 @@ jobs:
- task: Docker@2
displayName: 'Build Virtual Environment Image'
- condition: and(succeeded(), or(eq(variables.BASE_CHANGED, True), eq(variables.VENV_CHANGED, True))
+ condition: >
+ and(
+ succeeded(),
+ or(
+ eq(variables.BASE_CHANGED, True),
+ eq(variables.VENV_CHANGED, True)
+ )
+ )
inputs:
command: build
repository: pythondiscord/snekbox-venv
@@ -157,7 +164,12 @@ jobs:
- task: Docker@2
displayName: 'Push Base Image'
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables.BASE_CHANGED, True))
+ condition: >
+ and(
+ succeeded(),
+ ne(variables['Build.Reason'], 'PullRequest'),
+ eq(variables.BASE_CHANGED, True)
+ )
inputs:
command: push
repository: pythondiscord/snekbox-base
@@ -165,7 +177,15 @@ jobs:
- task: Docker@2
displayName: 'Push Virtual Environment Image'
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), or(eq(variables.BASE_CHANGED, True), eq(variables.VENV_CHANGED, True)))
+ condition: >
+ and(
+ succeeded(),
+ ne(variables['Build.Reason'], 'PullRequest'),
+ or(
+ eq(variables.BASE_CHANGED, True),
+ eq(variables.VENV_CHANGED, True)
+ )
+ )
inputs:
command: push
repository: pythondiscord/snekbox-venv