forked from mnmandahalf/check-ecr-image-exists
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
35 lines (35 loc) · 883 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
35
# action.yml
name: 'Check if Docker image with tag exists in ECR'
description: 'Check if specified tag image exists in your ECR repository'
author: 'mnmandahalf'
branding:
icon: 'search'
color: 'orange'
inputs:
region:
description: 'AWS region'
required: true
repository-name:
description: 'Repository name'
required: true
image-tag:
description: 'Image tag'
required: true
access-key-id:
description: 'AWS access key id'
required: false
secret-access-key:
description: 'AWS secret access kry'
required: false
outputs:
image-exists:
description: 'Flag indicating whether the docker image exists or not'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.region }}
- ${{ inputs.repository-name }}
- ${{ inputs.image-tag }}
- ${{ inputs.access-key-id }}
- ${{ inputs.secret-access-key }}