Skip to content

Commit 335bb6e

Browse files
committed
Merge branch 'maciejk/ar-image-staging' into maciejk/ar-image-release
# Conflicts: # scripts/release/build/build_info.py
2 parents c9c24fc + 1801c66 commit 335bb6e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

scripts/release/atomic_pipeline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from queue import Queue
1212
from typing import Dict, List, Optional, Tuple
1313

14-
import python_on_whales
1514
import requests
1615
from opentelemetry import trace
1716

@@ -63,7 +62,7 @@ def build_image(
6362
span = trace.get_current_span()
6463
span.set_attribute("mck.image_name", image_name)
6564

66-
registries = build_configuration.get_registries
65+
registries = build_configuration.get_registries()
6766

6867
build_args = build_args or {}
6968

scripts/release/build/build_info.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,24 @@
2929
class ImageInfo:
3030
repositories: List[str]
3131
platforms: list[str]
32-
version: str
32+
version: str | None
3333
dockerfile_path: str
34-
sign: bool = False
35-
latest_tag: bool = False
36-
olm_tag: bool = False
34+
sign: bool
35+
latest_tag: bool
3736

3837

3938
@dataclass
4039
class BinaryInfo:
4140
s3_store: str
4241
platforms: list[str]
43-
version: str
42+
version: str | None
4443
sign: bool = False
4544

4645

4746
@dataclass
4847
class HelmChartInfo:
4948
repository: List[str]
50-
version: str
49+
version: str | None
5150
sign: bool = False
5251

5352

scripts/release/tests/build_info_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,15 @@ def test_load_build_info_manual_release(git_repo: Repo):
439439
version=None, # Version is None for manual_release scenario
440440
dockerfile_path="docker/mongodb-agent/Dockerfile.atomic",
441441
sign=True,
442+
latest_tag=False,
442443
),
443444
"ops-manager": ImageInfo(
444445
repositories=["quay.io/mongodb/mongodb-enterprise-ops-manager"],
445446
platforms=["linux/amd64"],
446447
version=None, # Version is None for manual_release scenario
447448
dockerfile_path="docker/mongodb-enterprise-ops-manager/Dockerfile.atomic",
448449
sign=True,
450+
latest_tag=False,
449451
),
450452
},
451453
binaries={},

0 commit comments

Comments
 (0)