Closed fulviocanducci closed 1 year ago
Did you find what was the correct way?
ripplr-io/docr-image-remove
Yes!
The configuration requires the short name to work, example:
- name: Remove Old Images From Container Registry
uses: ripplr-io/docr-image-remove@v1
with:
image_repository: "Short_Name"
buffer_size: 1
You just need to be logged in to Digital Ocean via doctl:
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS }}
- name: Log in to DigitalOcean Container Registry with Short-lived Credentials
run: doctl registry login
this was performed by github actions
Thanks. Just found out by trial and error on a console.
The
image-repository
configuration was not very clear, for example you have to put in the full name example:registry.digitalocean.com/ex/ab:v1
orex/ab:v1
, could you please exemplify?Other Example:
or
Could you clarify me about this configuration what should I pass as a value?