-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
29 lines (28 loc) · 1.23 KB
/
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
name: 'Create ECR Repo if Missing'
description: 'A GitHub Action for creating AWS ECR repositories if they don''t already exist'
inputs:
DOCKER_REPO_NAME:
# Ex: 'byuapi-classes-v3-app' would allow you to tag and push images to
# $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/byuapi-classes-v3-app:some-tag
description: 'The ECR repository name'
required: true
AWS_ECR_PERMISSION_POLICY_JSON:
# Ex: 'byuapi-classes-v3-app' would allow you to tag and push images to
# $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/byuapi-classes-v3-app:some-tag
description: 'The ECR permission policy json'
required: true
NUM_DAYS_BEFORE_EXPIRING_UNTAGGED_IMAGES:
description: 'The number of days after which untagged images will expire'
required: false
default: '30'
# These next two go together to create the "Expire old images as new ones are built" lifecycle policy
TAG_PREFIX:
description: 'The image tag prefix used so that we can expire old images as new ones are built'
required: false
NUM_TAGGED_IMAGES_TO_RETAIN:
description: 'The number of images with the given prefix to retain'
required: false
# Defaults to retaining all tagged images
runs:
using: 'node16'
main: 'dist/index.js'