Skip to content

Commit

Permalink
Merge pull request #9 from martijnvdp/fix-delimiter-replace-comma-for…
Browse files Browse the repository at this point in the history
…-space

fix delimiter change comma for space
  • Loading branch information
martijnvdp authored Mar 7, 2023
2 parents e2eadd0 + acbed56 commit 9dde0ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,24 @@ Repository tags:
```
ecr_sync_constraint = "-ge v1.1.1" // equivalent of >= v1.1.1 other operators ( -gt -le -lt) because >= chars is not allowed in aws tags
ecr_sync_source = "docker.io/owner/image"
ecr_sync_include_rls = "ubuntu,rc" // releases to include v.1.2-ubuntu v1.2-RC-1
ecr_sync_include_rls = "ubuntu rc" // releases to include v.1.2-ubuntu v1.2-RC-1
ecr_sync_release_only = "true" // only release version exclude normal tags
ecr_sync_max_results = "10"
ecr_sync_exclude_rls = "RC,UBUNTU" // exclude certain releases
ecr_sync_exclude_tags = "1.1.1,2.2.2" // exclude specific tags
ecr_sync_include_tags = "1.1.1,2.2.2" // exclude specific tags
ecr_sync_exclude_rls = "RC UBUNTU" // exclude certain releases
ecr_sync_exclude_tags = "1.1.1 2.2.2" // exclude specific tags
ecr_sync_include_tags = "1.1.1 2.2.2" // exclude specific tags
```
## Versions

use constraint for version constraints

examples:
```hcl
"constraint": "~> v3.0"
"constraint": "=> v3.0, < v5.0"
"constraint": "= v3.0"
"constraint": "-ge v3.0"
"constraint": "-gt v3.0"
"constraint": "-le v3.0"
"constraint": "-lt v3.0"
```

use include_rls to include certain keywords/pre-releases:
Expand All @@ -83,21 +85,21 @@ Example for v1.2-beta-10 it is beta and 10
to include beta pre-releases:

```hcl
"include_rls": ["beta"]
"include_rls": "beta"
```
to exclude beta pre-releases:

```hcl
"exclude_rls": ["beta"]
"exclude_rls": "beta"
```

to include debian builds but exclude release candidates,alpha or beta

v1.2.3-debian-1-rc

```hcl
"include_rls": ["debian"]
"exclude_rls": ["rc","beta","alpha"]
"include_rls": "debian"
"exclude_rls": "rc beta alpha"
```

See for more info:
Expand Down
2 changes: 1 addition & 1 deletion pkg/lambda/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func maxInt(x, y int) int {
// stringToSlice returns a slice of strings from a comma separated string
func stringToSlice(s1 string) []string {
if s1 != "" {
return strings.Split(s1, ",")
return strings.Split(s1, " ")
}
return nil
}
Expand Down

0 comments on commit 9dde0ee

Please sign in to comment.