Skip to content

Commit c02109e

Browse files
committed
Improve naming and formatting
1 parent 2bacc7b commit c02109e

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.evergreen-functions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ variables:
2929
- otel_collector_endpoint
3030
- otel_parent_id
3131
- otel_trace_id
32+
- build_tag_type
3233
- registry
3334
- requester
3435
- skip_tags

.evergreen-periodic-builds.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ parameters:
1010
value: 00:00
1111
description: Pin tags at this time of the day. Midnight by default.
1212

13-
- key: build_tag_id_prefix
13+
- key: build_tag_type
1414
value: release
15-
description: Prefix for periodic builds for the image. This identifies a periodic build.
15+
description: The build type, this is added to the image tag. Used for periodic and release builds.
1616

1717
variables:
1818
- &setup_group

.evergreen.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ parameters:
174174
value: 10:00
175175
description: Pin tags at this time of the day. Midnight by default for periodic and 10 for releases.
176176

177-
- key: build_tag_id_prefix
177+
- key: build_tag_type
178178
value: release
179-
description: Prefix for release builds for the image. This identifies a release build.
179+
description: The build type, this is added to the image tag. Used for periodic and release builds.
180180

181181
- key: OVERRIDE_VERSION_ID
182182
value: ""

pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def build_id() -> str:
243243
"""
244244

245245
try:
246-
build_tag_id_prefix = os.environ["build_tag_id_prefix"]
246+
build_tag_type = os.environ["build_tag_type"]
247247
except KeyError:
248248
pass
249249

@@ -264,7 +264,7 @@ def build_id() -> str:
264264

265265
string_time = date.strftime("%Y%m%dT%H%M%SZ")
266266

267-
return f"{build_tag_id_prefix}-{string_time}"
267+
return f"{string_time}-{build_tag_type}"
268268

269269

270270
def get_release() -> Dict:

0 commit comments

Comments
 (0)