Skip to content

Commit 8702851

Browse files
committed
Azure Pipeline configuration
1 parent 7b5fddb commit 8702851

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# GitHub Release v1.0.0
2+
resources:
3+
- repo: self
4+
5+
trigger: none
6+
7+
pr:
8+
branches:
9+
include:
10+
- '*'
11+
12+
pool:
13+
vmImage: 'ubuntu-latest'
14+
15+
variables:
16+
pythonVersion: '3.12'
17+
venvDir: '$(Pipeline.Workspace)/venv'
18+
19+
jobs:
20+
- job: BuildAndDeploy
21+
displayName: "Build and Deploy"
22+
pool:
23+
vmImage: 'ubuntu-latest'
24+
steps:
25+
- checkout: self
26+
fetchDepth: 0
27+
fetchTags: true
28+
29+
- task: Docker@2
30+
displayName: 'Run build in Python Docker container'
31+
inputs:
32+
containerRegistry: '$(kraterdevteam)'
33+
repository: 'python'
34+
command: 'run'
35+
arguments: '--rm -v $(Pipeline.Workspace):/workspace -w /workspace python:$(pythonVersion) /bin/bash -c "python -m venv $(venvDir)
36+
&& source $(venvDir)/bin/activate && python -m pip install --upgrade pip && pip install setuptools==70.0.0
37+
&& pip install --force-reinstall wheel==0.30.0 && pip install azdev && azdev setup -c -r azure-cli-extensions
38+
&& azdev extension build acrcache"'

0 commit comments

Comments
 (0)