Skip to content

Commit fd206e7

Browse files
committed
Fix reposit
1 parent 67c9f45 commit fd206e7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lain_cli/reposit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from lain_sdk.util import info
55
from lain_cli.auth import SSOAccess, get_auth_header, authorize_and_check
6-
from lain_cli.utils import check_phase, lain_yaml, reposit_app, get_domain
6+
from lain_cli.utils import check_phase, lain_yaml, reposit_app, get_domain, get_phase_stage
77
from lain_cli.validate import validate_only_warning
88

99

@@ -17,7 +17,8 @@ def reposit(phase):
1717
validate_only_warning()
1818
info("Repositing ...")
1919

20-
yml = lain_yaml(ignore_prepare=True)
20+
stage = get_phase_stage(phase)
21+
yml = lain_yaml(ignore_prepare=True, stage=stage)
2122
authorize_and_check(phase, yml.appname)
2223

2324
access_token = SSOAccess.get_token(phase)

lain_cli/rmi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
from argh.decorators import arg
33

44
import lain_sdk.mydocker as docker
5-
from lain_cli.utils import check_phase
5+
from lain_cli.utils import check_phase, get_phase_stage
66
from lain_cli.utils import lain_yaml, get_meta_versions_from_tags, get_domain
77

88

99
def get_repo_tags_to_remove(phase):
10-
yml = lain_yaml(ignore_prepare=True)
10+
stage = get_phase_stage(phase)
11+
yml = lain_yaml(ignore_prepare=True, stage=stage)
1112
domain = get_domain(phase)
1213
registry = "registry.%s" % domain
1314
all_tags = docker.get_tag_list_in_docker_daemon(registry, yml.appname)

0 commit comments

Comments
 (0)