Add --config-ref flag.
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 38s
Smoke Test / Run basic test suite (pull_request) Successful in 4m53s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m13s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m45s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 8m56s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 11m14s
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 38s
Smoke Test / Run basic test suite (pull_request) Successful in 4m53s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m13s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m45s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 8m56s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 11m14s
This commit is contained in:
parent
fa21ff2627
commit
c0302492da
@ -49,6 +49,7 @@ def fatal(msg: str):
|
||||
required=True,
|
||||
)
|
||||
@click.option("--env-file", help="environment file for webapp")
|
||||
@click.option("--config-ref", help="The ref of an existing config upload to use.")
|
||||
@click.option(
|
||||
"--make-payment",
|
||||
help="The payment to make (in alnt). The value should be a number or 'auto' to use the deployer's minimum required payment.",
|
||||
@ -69,6 +70,7 @@ def command(
|
||||
app,
|
||||
deployer,
|
||||
env_file,
|
||||
config_ref,
|
||||
make_payment,
|
||||
use_payment,
|
||||
dns,
|
||||
@ -86,7 +88,8 @@ def command(
|
||||
if not deployer_record:
|
||||
fatal(f"Unable to locate deployer: {deployer}")
|
||||
|
||||
config_ref = None
|
||||
if env_file and config_ref:
|
||||
fatal(f"Cannot use --env-file and --config-ref at the same time.")
|
||||
|
||||
# If env_file
|
||||
if env_file:
|
||||
@ -132,9 +135,7 @@ def command(
|
||||
"version": "1.0.0",
|
||||
"name": f"{app_record.attributes.name}@{app_record.attributes.version}",
|
||||
"deployer": deployer,
|
||||
"meta": {
|
||||
"when": str(datetime.utcnow())
|
||||
}
|
||||
"meta": {"when": str(datetime.utcnow())},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user