Skip to content

Prune images in the Scaleway Container Registry by deleting excess tags via Github Actions.

Notifications You must be signed in to change notification settings

devoxa/scaleway-container-registry-prune-action

Repository files navigation

scaleway-container-registry-prune-action

Prune images in the Scaleway Container Registry by deleting excess tags via Github Actions.

Build Status Code Coverage

UsageContributorsLicense


Usage

steps:
  - name: 'Prune excess Docker tags from registry'
    uses: devoxa/scaleway-container-registry-prune-action@v1
    with:
      scw-secret-token: ${{ secrets.SCW_SECRET_TOKEN }}
      image: rg.nl-ams.scw.cloud/devoxa/genesis-server
      tag-pattern: ^(?!pr-).+$
      keep-last: 10

Inputs

Name Description
scw-secret-token The "secret key" part of a Scaleway API key
image The name of the image that should be pruned
tag-pattern A regular expression matching the tags that should be pruned
keep-last The number of most recent tags to keep

Contributors

Thanks goes to these wonderful people (emoji key):


David Reeß

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT

About

Prune images in the Scaleway Container Registry by deleting excess tags via Github Actions.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •