Skip to content

Commit

Permalink
Test registry state with regctl before and after pruner run
Browse files Browse the repository at this point in the history
  • Loading branch information
oxpa committed Sep 5, 2024
1 parent e6ca654 commit c992b91
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,24 @@ jobs:
outputs: type=registry,push=true,rewrite-timestamp=true
target: "AB"

- name: Install regctl
uses: iarekylew00t/regctl-installer@v2

- name: Test images can be downloaded
run: |
regctl --host reg=localhost:5000,tls=disabled tag list localhost:5000/image
for i in A AB latest; 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
- name: Prune registry
run: |
EXPERIMENTAL=true ./docker-distribution-pruner -config examples/registry/s3config.yml
EXPERIMENTAL=true ./docker-distribution-pruner -config examples/registry/s3config.yml -delete
- name: Test images can be downloaded after pruning
run: |
regctl --host reg=localhost:5000,tls=disabled tag list localhost:5000/image
for i in A AB latest; 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

0 comments on commit c992b91

Please sign in to comment.