forked from kciter/aws-ecr-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
62 lines (62 loc) · 1.97 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: AWS ECR
author: Lee Sun-Hyoup <kciter@naver.com>, Pablo Castillo <pablo@castillo.is>
branding:
icon: upload-cloud
color: orange
description: Create Docker images and push into a ECR repository.
inputs:
access_key_id:
description: The AWS access key id
required: true
secret_access_key:
description: The AWS secret access key
required: true
account_id:
description: AWS Account ID
required: true
assume_role:
description: A role to assume under the account_id account.
required: false
default: ''
repo:
description: Name of your ECR repository
required: true
region:
description: The AWS region
required: true
create_repo:
description: Set this to true to create the repository if it does not already exist
default: false
set_repo_policy:
description: Set this to true to set a policy on the repository
default: false
repo_policy_file:
description: Set this to repository policy statement json file. only used if the set_repo_policy is set to true
default: repo-policy.json
tags:
description: Comma-separated string of ECR image tags
default: latest
image_scanning_configuration:
description: Set this to True if you want AWS to scan your images for vulnerabilities
default: false
dockerfile:
description: Name of Dockerfile to use
default: Dockerfile
extra_build_args:
description: Extra flags to pass to docker build (see docs.docker.com/engine/reference/commandline/build)
default: ''
cache_from:
description: Images to use as cache for the docker build (see `--cache-from` argument docs.docker.com/engine/reference/commandline/build)
default: ''
path:
description: Path to Dockerfile, defaults to the working directory
default: .
prebuild_script:
description: Relative path from top-level to script to run before Docker build
required: false
outputs:
image:
description: 'The created image name'
runs:
using: docker
image: Dockerfile