add APT cache server configuration to CI/CD workflows
This commit is contained in:
parent
3a7073c0ab
commit
d1b8fe9425
1 changed files with 14 additions and 10 deletions
|
|
@ -18,16 +18,20 @@ jobs:
|
|||
cp -r /tmp/deb-mock/* .
|
||||
cp -r /tmp/deb-mock/.* . 2>/dev/null || true
|
||||
|
||||
- name: Set up Python
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y python3.12 python3.12-venv python3-pip
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y build-essential devscripts debhelper dh-python python3-all python3-setuptools
|
||||
sudo apt install -y sbuild schroot debootstrap
|
||||
- name: Set up Python
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y python3.12 python3.12-venv python3-pip
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
# Configure APT to use your cache server
|
||||
echo 'Acquire::http::Proxy "http://192.168.1.79:3142";' | sudo tee /etc/apt/apt.conf.d/99proxy
|
||||
echo 'Acquire::https::Proxy "http://192.168.1.79:3142";' | sudo tee -a /etc/apt/apt.conf.d/99proxy
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y build-essential devscripts debhelper dh-python python3-all python3-setuptools
|
||||
sudo apt install -y sbuild schroot debootstrap
|
||||
|
||||
- name: Create deb-mock directories
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue