Skip to content

Commit

Permalink
Build and run pruner
Browse files Browse the repository at this point in the history
  • Loading branch information
oxpa committed Sep 4, 2024
1 parent 4075ef6 commit 9ecd375
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build code
run: |
cd cmds/docker-distribution-pruner/
go get
go build
mv docker-distribution-pruner ../../
cd -
- name: Login to Dockerhub
uses: docker/login-action@v3
Expand Down Expand Up @@ -126,3 +134,8 @@ jobs:
tags: "localhost:5000/image:latest"
outputs: type=registry,push=true,rewrite-timestamp=true
target: "AB"


- name: Prune registry
run: |
EXPERIMENTAL=true ./docker-distribution-pruner -config examples/registry/s3config.yml
31 changes: 31 additions & 0 deletions examples/registry/s3config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 0.1
log:
level: debug
fields:
service: registry
storage:
storage:
s3:
bucket: "testme"
v4auth: "false"
region: "generic"
regionendpoint: "http://s3mock:9090"
secure: "false"
accesskey: "123"
secretkey: "123"
redirect:
disable: "true"
delete:
enable: "true"

http:
addr: :5000
secret: "shared-registry-secret"
headers:
X-Content-Type-Options: [nosniff]

health:
storagedriver:
enabled: true
interval: 10s
threshold: 3

0 comments on commit 9ecd375

Please sign in to comment.