Skip to content

Commit 62369ad

Browse files
committed
Add tag_format example for AWS ECR
Signed-off-by: Robert Detjens <[email protected]>
1 parent f52ca37 commit 62369ad

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/configparser/config.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,17 @@ struct Registry {
6666
/// Example: `domain: "registry.io/myctf"`
6767
domain: String,
6868

69-
/// Image tag format string. Useful if the registry forces a single
70-
/// container repository. (AWS...)
69+
/// Container image tag format for challenge images.
7170
///
72-
/// Format: Jinja-style double-braces around field name (`{{ field_name }}`)
71+
/// Format:
72+
/// Jinja-style double-braces around field name (`{{ field_name }}`)
7373
///
74-
/// Default: `"{{domain}}/{{challenge}}-{{container}}:{{profile}}"`
74+
/// Default, works for most registries (self-hosted, GCP, DigitalOcean, ...):
75+
/// `"{{domain}}/{{challenge}}-{{container}}:{{profile}}"`
76+
///
77+
/// For registries like AWS that make it hard to create individual repositories,
78+
/// keep all the challenge info in the tag:
79+
/// `"{{domain}}:{{challenge}}-{{container}}-{{profile}}"`
7580
///
7681
/// Available fields:
7782
/// - `domain`: the domain config field above; the repository base URL

0 commit comments

Comments
 (0)