Skip to content

Commit

Permalink
Matrix the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Feb 16, 2024
1 parent f340c2b commit 5db5107
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
PKG_DIR=../proxy make -C securedrop-builder requirements
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git diff --ignore-matching-lines=# --exit-code
build-debs:
strategy:
Expand Down Expand Up @@ -122,7 +122,16 @@ jobs:
piuparts:
strategy:
fast-fail: false
matrix:
# TODO: client sets up apparmor, which doesn't work in our CI setup
# TODO: get workstation-viewer to pass piuparts (pulls in grsec and qubes packages)
package:
- export
- keyring
- log
- proxy
- workstation-config
debian_version:
- bullseye
- bookworm
Expand All @@ -144,4 +153,5 @@ jobs:
-v "/$(pwd)/build-${{ matrix.debian_version }}:/build" \
-v "/$(pwd)/.github/workflows/piuparts:/piuparts" \
-e DISTRO=${{ matrix.debian_version }} \
-e PACKAGE=${{ matrix.package }} \
debian:${{ matrix.debian_version }} bash /piuparts/run-piuparts.sh
15 changes: 5 additions & 10 deletions .github/workflows/piuparts/run-piuparts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ cd /piuparts
cp /keyring/securedrop-keyring.gpg .
docker build . --build-arg DISTRO=$DISTRO -t ourimage

# TODO: client sets up apparmor, which doesn't work in our CI setup
# TODO: get workstation-viewer to pass piuparts (pulls in grsec and qubes packages)
for pkg in export keyring log proxy workstation-config;
do
piuparts --docker-image ourimage \
--distribution $DISTRO \
--extra-repo 'deb [signed-by=/usr/share/keyrings/securedrop-keyring.gpg] https://apt.freedom.press bullseye main' \
--warn-on-leftovers-after-purge \
/build/securedrop-${pkg}*.deb
done
piuparts --docker-image ourimage \
--distribution $DISTRO \
--extra-repo 'deb [signed-by=/usr/share/keyrings/securedrop-keyring.gpg] https://apt.freedom.press bullseye main' \
--warn-on-leftovers-after-purge \
/build/securedrop-${PACKAGE}*.deb

0 comments on commit 5db5107

Please sign in to comment.