logging
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 25s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m0s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 5m33s
Smoke Test / Run basic test suite (pull_request) Successful in 3m14s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m22s

This commit is contained in:
Thomas E Lackey 2024-02-23 20:54:06 -06:00
parent f27248b508
commit 694590ed56

View File

@ -115,12 +115,14 @@ def process_app_deployment_request(
shared_tag_exists = remote_image_exists(image_registry, app_image_shared_tag)
if shared_tag_exists and not force_rebuild:
# simply add our unique tag to the existing image and we are done
print(f"Using existing app image {app_image_shared_tag} for {deployment_container_unique_tag}", file=log_file)
add_tags_to_image(image_registry, app_image_shared_tag, deployment_container_unique_tag)
else:
extra_build_args = [] # TODO: pull from request
build_container_image(app, deployment_container_unique_tag, extra_build_args, log_file)
push_container_image(deployment_dir, log_file)
# The build/push commands above will use the unique deployment tag, so now we need to add the shared tag.
print(f"Updating app image tag {app_image_shared_tag} from build of {deployment_container_unique_tag}", file=log_file)
add_tags_to_image(image_registry, deployment_container_unique_tag, app_image_shared_tag)
# 7. update config (if needed)