-
Notifications
You must be signed in to change notification settings - Fork 461
/
azure-pipelines.yml
37 lines (32 loc) · 1.04 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
variables:
- group: videotoolsbuild-dockerhub
- name: DOCKER
value: jrottenberg/ffmpeg
- name: GHCR
value: ghcr.io/jrottenberg/ffmpeg
stages:
- stage: lint
jobs:
- job: precommit
pool:
vmImage: ubuntu-latest
variables:
PRE_COMMIT_HOME: $(Pipeline.Workspace)/pre-commit-cache
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.9"
- script: |
echo "##vso[task.setvariable variable=PY]$(python -VV)"
displayName: set version variables
- task: CacheBeta@0
inputs:
key: pre-commit | "4" | .pre-commit-config.yaml | "$(PY)"
path: $(PRE_COMMIT_HOME)
- script: python -m pip install --upgrade pre-commit packaging
displayName: install python deps
- script: pre-commit run --all-files --show-diff-on-failure
displayName: run pre-commit
- stage: Build_Docker_Images
jobs:
- template: docker-images/azure-jobs.yml