Skip to content

Commit 6410156

Browse files
committed
actually slugify challenge name as documented
Signed-off-by: Robert Detjens <[email protected]>
1 parent 03a498e commit 6410156

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/configparser/challenge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl ChallengeConfig {
157157
ImageSource::Build(b) => Ok(render!(
158158
&get_config()?.registry.tag_format,
159159
domain => config.registry.domain,
160-
challenge => self.name,
160+
challenge => self.slugify(),
161161
container => pod.name,
162162
profile => profile_name
163163
)),

tests/repo/rcds.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ flag_regex: dam{[a-zA-Z...]}
22

33
registry:
44
domain: localhost:5000/damctf
5+
tag_format: "{{domain}}/{{challenge}}/{{container}}:{{profile}}"
56
# or environment vars e.g. BEAVERCDS_REGISTRY_BUILD_USER / etc
67
build:
78
user: admin

0 commit comments

Comments
 (0)