Add comment.
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 52s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m9s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m15s
Smoke Test / Run basic test suite (pull_request) Successful in 5m30s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m0s

This commit is contained in:
Thomas E Lackey 2024-02-23 18:59:46 -06:00
parent b0d003cc01
commit 61d254cd6c

View File

@ -93,6 +93,7 @@ def process_app_deployment_request(
deployment_record = laconic.get_record(app_deployment_crn) deployment_record = laconic.get_record(app_deployment_crn)
deployment_dir = os.path.join(deployment_parent_dir, fqdn) deployment_dir = os.path.join(deployment_parent_dir, fqdn)
deployment_config_file = os.path.join(deployment_dir, "config.env") deployment_config_file = os.path.join(deployment_dir, "config.env")
# TODO: Is there any reason not to simplify the hash input to the app_deployment_crn?
deployment_container_unique_tag = "laconic-webapp/%s:local" % hashlib.md5(deployment_dir.encode()).hexdigest() deployment_container_unique_tag = "laconic-webapp/%s:local" % hashlib.md5(deployment_dir.encode()).hexdigest()
deployment_container_shared_tag = f"laconic-webapp/{app.id}:local" deployment_container_shared_tag = f"laconic-webapp/{app.id}:local"
# b. check for deployment directory (create if necessary) # b. check for deployment directory (create if necessary)