-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from seek-oss/fix-defaults
Fix policy defaults
- Loading branch information
Showing
3 changed files
with
58 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,50 @@ | ||
# create-ecr-buildkite-plugin | ||
# Create ECR Buildkite Plugin | ||
|
||
A [Buildkite plugin](https://buildkite.com/docs/agent/v3/plugins) to create and configure AWS ECR. | ||
[![Build Status](https://img.shields.io/github/release/seek-oss/create-ecr-buildkite-plugin.svg)](https://github.com/seek-oss/create-ecr-buildkite-plugin/releases) | ||
|
||
# Example | ||
A [Buildkite plugin](https://buildkite.com/docs/agent/v3/plugins) to create and | ||
manage an Amazon ECR repository. | ||
|
||
## Basic Usage | ||
## Example | ||
|
||
```yml | ||
The following pipeline creates an ECR repository `my-repo` if it does not | ||
already exist, and sets the lifecycle policy to the default | ||
[policies/default-lifecycle-policy.json](policies/default-lifecycle-policy.json): | ||
|
||
```yaml | ||
steps: | ||
- label: ecr | ||
plugins: | ||
- seek-oss/create-ecr#v1.1.2: | ||
name: my-repo | ||
``` | ||
A custom lifecycle policy and repository policy may be specified: | ||
```yaml | ||
steps: | ||
- label: 'Main' | ||
- label: ecr | ||
plugins: | ||
seek-oss/create-ecr: | ||
name: 'my-repo-name' | ||
repository-policy: 'path/to/repository-policy.json' | ||
lifecycle-policy: 'path/to/lifecycle-policy.json' | ||
command: | ||
- echo hi | ||
- seek-oss/create-ecr#v1.1.2: | ||
lifecycle-policy: path/to/lifecycle-policy.json | ||
name: my-repo | ||
repository-policy: path/to/repository-policy.json | ||
``` | ||
Params: | ||
## Configuration | ||
- `name` (required, string) | ||
|
||
Name of the ECR repository. | ||
|
||
- `repository-policy` (optional, string) | ||
|
||
Path in local repository to the repository policy file. | ||
|
||
- `lifecycle-policy` (optional, string) | ||
|
||
- name (required) - name of the ECR. | ||
- repository-policy (optional) - path in local repository to the repository policy file. | ||
- lifecycle-policy (optional) - path in local repository to the lifecycle policy file. | ||
Path in local repository to the lifecycle policy file. | ||
|
||
# License | ||
## License | ||
|
||
MIT (see [LICENSE](LICENSE)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
name: create-ecr | ||
description: Plugin managing creation of AWS ECR | ||
name: Create ECR | ||
description: Create and manage an Amazon ECR repository | ||
author: https://github.com/seek-oss | ||
requirements: | ||
- docker | ||
configuration: | ||
properties: | ||
lifecycle-policy: | ||
type: string | ||
name: | ||
type: string | ||
repository-policy: | ||
type: string | ||
lifecycle-policy: | ||
type: string | ||
required: ["name"] | ||
required: ['name'] |