Skip to content

Commit 79e5b4e

Browse files
committed
Fix deb build: use Docker container for isolated build environment
1 parent 2b33e81 commit 79e5b4e

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/deploy-image.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,20 @@ jobs:
6969
platforms: linux/amd64,linux/arm64
7070

7171
build-and-publish-deb:
72-
runs-on: ubuntu-22.04
72+
runs-on: ubuntu-latest
7373
needs: test
7474
if: startsWith(github.ref, 'refs/tags/v')
7575
steps:
7676
- name: Checkout repository
7777
uses: actions/checkout@v6
7878

79-
- name: Set up Python
80-
uses: actions/setup-python@v6
81-
with:
82-
python-version: '3.12'
83-
84-
- name: Install build dependencies
79+
- name: Build deb in container
8580
run: |
86-
sudo apt-get update -qq
87-
sudo apt-get install -y dh-python python3-all debhelper build-essential fakeroot
88-
pip install setuptools stdeb
89-
90-
- name: Build deb
91-
run: make deb
81+
docker run --rm -v $(pwd):/workspace -w /workspace ubuntu:22.04 bash -c "
82+
apt-get update -qq && apt-get install -y python3 python3-pip dh-python python3-all debhelper build-essential fakeroot make
83+
pip install setuptools stdeb
84+
make deb
85+
"
9286
9387
- name: Upload deb to GitHub Release
9488
uses: softprops/action-gh-release@v3

0 commit comments

Comments
 (0)