Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 2.96 KB

File metadata and controls

82 lines (65 loc) · 2.96 KB

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