Compare commits

...

2 Commits

Author SHA1 Message Date
5aaefbe2b1 fix deployment ports command
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 34s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m34s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m41s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m13s
Smoke Test / Run basic test suite (pull_request) Successful in 4m10s
2024-06-24 22:10:12 +08:00
e622012c59 fix extra config detection 2024-06-24 22:10:12 +08:00
2 changed files with 6 additions and 0 deletions

View File

@ -123,6 +123,7 @@ def push_images(ctx):
@click.argument('extra_args', nargs=-1) # help: command: port <service1> <service2> @click.argument('extra_args', nargs=-1) # help: command: port <service1> <service2>
@click.pass_context @click.pass_context
def port(ctx, extra_args): def port(ctx, extra_args):
ctx.obj = make_deploy_context(ctx)
port_operation(ctx, extra_args) port_operation(ctx, extra_args)

View File

@ -238,6 +238,11 @@ def _find_extra_config_dirs(parsed_pod_file, pod):
config_dir = host_path.split("/")[2] config_dir = host_path.split("/")[2]
if config_dir != pod: if config_dir != pod:
config_dirs.add(config_dir) config_dirs.add(config_dir)
for env_file in service_info.get("env_file", []):
if env_file.startswith("../config"):
config_dir = env_file.split("/")[2]
if config_dir != pod:
config_dirs.add(config_dir)
return config_dirs return config_dirs