Skip to content

Commit b13e87f

Browse files
committed
Restore CI test to run debian container instead of just pulling image
1 parent 76318f4 commit b13e87f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
mkdir -p ~/.ssh
3838
ssh-keyscan -t rsa -p 2222 127.0.0.1 >> ~/.ssh/known_hosts
3939
40-
- name: Pull an image to verify that docker system prune will work
40+
- name: Run a container to verify that docker system prune will work
4141
run: |
42-
ssh -p 2222 [email protected] docker pull debian:12
42+
ssh -p 2222 [email protected] docker run --name debian debian:12
4343
shell: bash
4444

4545
- name: Test
@@ -67,6 +67,14 @@ jobs:
6767
fi
6868
shell: bash
6969

70+
- name: Check that the Debian container got removed
71+
run: |
72+
if ssh -p 2222 [email protected] docker container inspect debian; then
73+
echo "Debian container was not cleaned up!"
74+
exit 1
75+
fi
76+
shell: bash
77+
7078
- name: Check that the Debian image got removed
7179
run: |
7280
if ssh -p 2222 [email protected] docker image inspect debian:12; then

0 commit comments

Comments
 (0)