GithubHelp home page GithubHelp logo

Comments (8)

sondrelg avatar sondrelg commented on June 18, 2024 3

https://github.com/snok/container-retention-policy lets you delete GHCR packages 🙂

from delete-package-versions.

mr-linch avatar mr-linch commented on June 18, 2024 2

If just need to delete packages by tag, you can checkout our action https://github.com/marketplace/actions/ghcr-delete-image

from delete-package-versions.

amiantos avatar amiantos commented on June 18, 2024 1

@sondrelg that action serves my purposes! I am going to close this issue, I consider that action to have solved it.

from delete-package-versions.

thomastvedt avatar thomastvedt commented on June 18, 2024

And if this action will support container registry in the future, will containers show up under repository.packages in Github's GraphQL API in the future?

This graphql returns NuGet packages, but not Docker images:

query getVersions($owner: String!, $repo: String!, $last: Int!) {
    repository(owner: $owner, name: $repo) {
    	name
      packages(first: 10) {
      	totalCount
        edges {
          node {
            name
            versions(last: $last) {
              edges {
                node {
                  id
                  version
                }
              }
            }
          }
        }
      }
    }
  }

from delete-package-versions.

kc1r74p avatar kc1r74p commented on June 18, 2024

@amiantos @thomastvedt
FYI: I created a fix over here:
#28 (comment)

I will see to open a PR into this repo, however for me it depends how the roadmap looks and if the GraphQL API will also deliver this functionality in the future.

from delete-package-versions.

thomastvedt avatar thomastvedt commented on June 18, 2024

@amiantos @thomastvedt
FYI: I created a fix over here:
#28 (comment)

I will see to open a PR into this repo, however for me it depends how the roadmap looks and if the GraphQL API will also deliver this functionality in the future.

Nice!, if I understand correctly it is now possible to delete container packages from ghcr.io with REST? But still not via graphql yet?

Also, this repository (delete-package-versions) is marked as unmaintained, did you find a good alternative?

from delete-package-versions.

eberkund avatar eberkund commented on June 18, 2024

Any updates on this?

from delete-package-versions.

hariso avatar hariso commented on June 18, 2024

I'd be interested in this too.

from delete-package-versions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.