forked from martintomas/docr-image-remove
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
25 lines (23 loc) · 764 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: DigitalOcean Container Registry Remove With Garbage Collection
description: Remove old images from Digital Ocean's Container Registry
branding:
icon: 'trash'
color: 'blue'
inputs:
image_repository:
description: Image repository name in the Container Registry
required: true
buffer_size:
description: Number of recent images. Default is 10
required: false
default: 10
exclude:
description: Tag regex to exclude. Example - ^(latest|tag1|tag2)$
required: false
default: ''
runs:
using: composite
steps:
- name: Remove images older than the last n versions
shell: bash
run: ${{ github.action_path }}/remove_images.sh ${{ inputs.image_repository }} ${{ inputs.buffer_size }} '${{ inputs.exclude }}'