mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
ci: Fix CI races in Debian Bullseye tests
This commit is contained in:
parent
a2506e6968
commit
9a45bc12c5
1 changed files with 24 additions and 0 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -119,6 +119,30 @@ jobs:
|
||||||
--version ${{ matrix.version }} \
|
--version ${{ matrix.version }} \
|
||||||
build
|
build
|
||||||
|
|
||||||
|
- name: Configure Podman for Debian Bullseye specifically
|
||||||
|
if: matrix.target == 'debian-bullseye'
|
||||||
|
run: |
|
||||||
|
# Create a Podman config specifically for Bullseye (see #388).
|
||||||
|
mkdir bullseye_fix
|
||||||
|
cd bullseye_fix
|
||||||
|
cat > containers.conf <<EOF
|
||||||
|
[engine]
|
||||||
|
cgroup_manager="cgroupfs"
|
||||||
|
events_logger="file"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Copy the Podman config into the container image we created for the
|
||||||
|
# Dangerzone environment.
|
||||||
|
cat > Dockerfile.bullseye <<EOF
|
||||||
|
FROM dangerzone.rocks/debian:bullseye-backports
|
||||||
|
RUN mkdir -p /home/user/.config/containers
|
||||||
|
COPY containers.conf /home/user/.config/containers/
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Create a new image from the Dangerzone environment and re-tag it.
|
||||||
|
podman build -t dangerzone.rocks/debian:bullseye-backports \
|
||||||
|
-f Dockerfile.bullseye .
|
||||||
|
|
||||||
- name: Run a test command
|
- name: Run a test command
|
||||||
run: |
|
run: |
|
||||||
./dev_scripts/env.py --distro ${{ matrix.distro }} \
|
./dev_scripts/env.py --distro ${{ matrix.distro }} \
|
||||||
|
|
Loading…
Reference in a new issue