forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaz.yaml
68 lines (57 loc) · 1.51 KB
/
az.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
package:
name: az
version: 2.66.0
epoch: 0
description: Azure CLI
copyright:
- license: MIT
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- openssf-compiler-options
- 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: 34dac6f0c68d053073d5bff50acaf90f2de4f0fb
- 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
.venv/bin/pip install --upgrade setuptools==70.0.0
- 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
az -h