Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oxpa committed Sep 5, 2024
1 parent 484a036 commit 71ce8ba
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,28 @@ jobs:
regctl --host reg=localhost:5000,tls=disabled image manifest localhost:5000/image:$i
regctl --host reg=localhost:5000,tls=disabled image export localhost:5000/image:$i > /dev/null
done
- name: Delete tag
run: |
regctl --host reg=localhost:5000,tls=disabled tag list localhost:5000/image
regctl --host reg=localhost:5000,tls=disabled tag delete localhost:5000/image:latest
for i in A AB; do
regctl --host reg=localhost:5000,tls=disabled image manifest localhost:5000/image:$i
regctl --host reg=localhost:5000,tls=disabled image export localhost:5000/image:$i > /dev/null
done
if regctl --host reg=localhost:5000,tls=disabled image manifest localhost:5000/image:latest; then
echo "Something went wrong!"
exit 1
fi
- name: Prune registry again
run: |
EXPERIMENTAL=true ./docker-distribution-pruner -config examples/registry/s3config.yml -delete -trace
- name: Test images can be downloaded after pruning a tag
run: |
regctl --host reg=localhost:5000,tls=disabled tag list localhost:5000/image
for i in A AB; do
regctl --host reg=localhost:5000,tls=disabled image manifest localhost:5000/image:$i
regctl --host reg=localhost:5000,tls=disabled image export localhost:5000/image:$i > /dev/null
done

0 comments on commit 71ce8ba

Please sign in to comment.