-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
34 lines (30 loc) · 863 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
26
27
28
29
30
31
32
33
34
# This is a definition file for a Github Action.
# See: https://help.github.com/en/articles/creating-a-docker-container-action
# We also define metadata here:
# See: https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: 'docker-image-size-limit'
description: 'Runs docker-image-size-limit as a GitHub Action'
branding:
icon: 'check'
color: 'blue'
inputs:
image:
description: 'Image name to be checked'
required: true
size:
description: 'Human readable size as the hard limit'
required: true
max_layers:
description: 'The maximum number of layers in the image'
required: false
default: -1
outputs:
size:
description: 'The output of docker-image-size-limit run'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.image }}
- ${{ inputs.size }}
- ${{ inputs.layers }}