-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaz-2.62.0-r0.yaml
72 lines (54 loc) · 1.42 KB
/
az-2.62.0-r0.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package:
name: az-2.62.0-r0
version: 2.62.0
epoch: 0
description: Azure CLI
copyright:
- license: MIT
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3.11-pip
- python-3.11
- python-3.11-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/Azure/azure-cli/
tag: azure-cli-${{package.version}}
expected-commit: add4b2cc69df23d4e664d79b6aec3e036b2d6e2c
- name: Python Build
runs: 'pip install wheel
cd src/azure-cli
python setup.py bdist_wheel
cd ../azure-cli-core
python setup.py bdist_wheel
'
- runs: '# Setup the virtualenv
python -m venv .venv
# Bump pip to patch a CVE
.venv/bin/pip install --upgrade pip==23.3.2
'
- runs: '.venv/bin/pip install --no-compile src/azure-cli/dist/*.whl src/azure-cli-core/dist/*.whl
'
- runs: 'mkdir -p ${{targets.destdir}}/usr/share/az
mv .venv ${{targets.destdir}}/usr/share/az/
# edit the venv paths
sed -i "s|/home/build|/usr/share/az|g" ${{targets.destdir}}/usr/share/az/.venv/bin/*
'
- runs: 'mkdir -p ${{targets.destdir}}/usr/bin
ln -s /usr/share/az/.venv/bin/az ${{targets.destdir}}/usr/bin/az
'
- uses: strip
update:
enabled: true
github:
identifier: Azure/azure-cli
strip-prefix: azure-cli-
test:
pipeline:
- runs: 'az --version
'