Skip to content

Commit acbed56

Browse files
committed
fix delimiter change comma for space
1 parent e2eadd0 commit acbed56

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,24 @@ Repository tags:
5757
```
5858
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
5959
ecr_sync_source = "docker.io/owner/image"
60-
ecr_sync_include_rls = "ubuntu,rc" // releases to include v.1.2-ubuntu v1.2-RC-1
60+
ecr_sync_include_rls = "ubuntu rc" // releases to include v.1.2-ubuntu v1.2-RC-1
6161
ecr_sync_release_only = "true" // only release version exclude normal tags
6262
ecr_sync_max_results = "10"
63-
ecr_sync_exclude_rls = "RC,UBUNTU" // exclude certain releases
64-
ecr_sync_exclude_tags = "1.1.1,2.2.2" // exclude specific tags
65-
ecr_sync_include_tags = "1.1.1,2.2.2" // exclude specific tags
63+
ecr_sync_exclude_rls = "RC UBUNTU" // exclude certain releases
64+
ecr_sync_exclude_tags = "1.1.1 2.2.2" // exclude specific tags
65+
ecr_sync_include_tags = "1.1.1 2.2.2" // exclude specific tags
6666
```
6767
## Versions
6868

6969
use constraint for version constraints
7070

7171
examples:
7272
```hcl
73-
"constraint": "~> v3.0"
74-
"constraint": "=> v3.0, < v5.0"
75-
"constraint": "= v3.0"
73+
"constraint": "-ge v3.0"
74+
"constraint": "-gt v3.0"
75+
"constraint": "-le v3.0"
76+
"constraint": "-lt v3.0"
77+
7678
```
7779

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

8587
```hcl
86-
"include_rls": ["beta"]
88+
"include_rls": "beta"
8789
```
8890
to exclude beta pre-releases:
8991

9092
```hcl
91-
"exclude_rls": ["beta"]
93+
"exclude_rls": "beta"
9294
```
9395

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

9698
v1.2.3-debian-1-rc
9799

98100
```hcl
99-
"include_rls": ["debian"]
100-
"exclude_rls": ["rc","beta","alpha"]
101+
"include_rls": "debian"
102+
"exclude_rls": "rc beta alpha"
101103
```
102104

103105
See for more info:

pkg/lambda/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func maxInt(x, y int) int {
2424
// stringToSlice returns a slice of strings from a comma separated string
2525
func stringToSlice(s1 string) []string {
2626
if s1 != "" {
27-
return strings.Split(s1, ",")
27+
return strings.Split(s1, " ")
2828
}
2929
return nil
3030
}

0 commit comments

Comments
 (0)