diff options
| author | 2020-02-21 18:33:00 -0800 | |
|---|---|---|
| committer | 2020-02-21 22:38:45 -0800 | |
| commit | e64fd05168f61440047436cbe41d04c8070fdd9a (patch) | |
| tree | be79fe43d8f4ba4ca3fcfc2c92c6ff394f80f54a | |
| parent | CI: don't use output variables (diff) | |
CI: define default values for variables
| -rw-r--r-- | azure-pipelines.yml | 5 | ||||
| -rw-r--r-- | ci/build.yml | 4 | 
2 files changed, 7 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9b0c648..a1a7a4f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,6 +7,11 @@ jobs:      pool:        vmImage: 'ubuntu-18.04' +    variables: +      BASE_CHANGED: 'True' +      VENV_CHANGED: 'True' +      BASE_PULL: 'False' +      steps:        - template: ci/build.yml        - template: ci/setup.yml diff --git a/ci/build.yml b/ci/build.yml index a076431..6e71a00 100644 --- a/ci/build.yml +++ b/ci/build.yml @@ -22,7 +22,7 @@ steps:          -t pythondiscord/snekbox-base:latest \          .      displayName: 'Build Base Image' -    condition: and(succeeded(), ne(variables.BASE_PULL, 'True')) +    condition: and(succeeded(), eq(variables.BASE_PULL, 'False'))    # Build the venv image if it's had changes.    - script: | @@ -31,4 +31,4 @@ steps:          -t pythondiscord/snekbox-venv:latest \          .      displayName: 'Build Virtual Environment Image' -    condition: and(succeeded(), ne(variables.VENV_CHANGED, 'False')) +    condition: and(succeeded(), eq(variables.VENV_CHANGED, 'True'))  |