Skip to content

Commit b3fd76d

Browse files
committed
chore: debug podman v6
1 parent 7595a14 commit b3fd76d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,20 @@ jobs:
6969
with:
7070
repository: voxpupuli/puppet-example
7171

72-
- name: Test container
72+
- name: Configure podman
7373
run: |
7474
systemctl start --user podman.socket
7575
echo "DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock" >> "$GITHUB_ENV"
7676
docker save ci/voxbox:${{ matrix.rubygem_puppet }} | podman load
7777
78-
echo "### show current dir #######################################"
79-
ls -la .
80-
echo "### find all non-owned files ###############################"
81-
find . ! -user $USER
82-
echo "### show files in container ################################"
83-
podman run --userns=keep-id --rm -v $PWD:/repo:Z --entrypoint ash ci/voxbox:${{ matrix.rubygem_puppet }} -c "ls -la"
84-
echo "### show user id ###########################################"
85-
id runner
86-
echo "############################################################"
78+
mkdir -p ~/.config/containers
79+
cat > ~/.config/containers/containers.conf <<'EOF'
80+
[engine]
81+
userns = "keep-id"
82+
EOF
83+
84+
- name: Test container
85+
run: |
8786
# podman run --rm -v $PWD:/repo:Z ci/voxbox:${{ matrix.rubygem_puppet }} -f /Rakefile -T
8887
# podman run --rm -v $PWD:/repo:Z ci/voxbox:${{ matrix.rubygem_puppet }} -f /Rakefile lint
8988
# podman run --rm -v $PWD:/repo:Z ci/voxbox:${{ matrix.rubygem_puppet }} -f /Rakefile metadata_lint

0 commit comments

Comments
 (0)