Skip to content

Does this tool even work? #61

@ukch

Description

@ukch

Behavior

I am trying to use this tool to prune old images from ghcr repository: I run this command:

$ /bin/drprune gh images -n $GH_ORG_NAME -t "$GH_TOKEN" -c $IMAGE_NAME


██╗███╗   ███╗ █████╗  ██████╗ ███████╗███████╗
██║████╗ ████║██╔══██╗██╔════╝ ██╔════╝██╔════╝
██║██╔████╔██║███████║██║  ███╗█████╗  ███████╗
██║██║╚██╔╝██║██╔══██║██║   ██║██╔══╝  ╚════██║
██║██║ ╚═╝ ██║██║  ██║╚██████╔╝███████╗███████║
╚═╝╚═╝     ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚══════╝

INFO[2022-07-27_18:17:31] ✅ Package: xxxxxx/xxxxxxx
INFO[2022-07-27_18:17:31] ✅ We have 232 versions in this package

No matter what args I run this with, the number 232 does not change. So I'm wondering, does this tool even do what it's supposed to, or is it just a prototype?

Expected behavior

Old images should be deleted from GHCR

Actual behavior

Nothing is deleted

Environment

I am using the latest main version, built using make build on Ubuntu 20.04 (snap version of golang, v1.18.3)

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions