Skip to content

VED-1152: Skip redundant Docker builds and enabling layer caching#1383

Merged
Thomas-Boyle merged 13 commits intomasterfrom
deployment-docker-build-optimisations
Apr 14, 2026
Merged

VED-1152: Skip redundant Docker builds and enabling layer caching#1383
Thomas-Boyle merged 13 commits intomasterfrom
deployment-docker-build-optimisations

Conversation

@Thomas-Boyle
Copy link
Copy Markdown
Contributor

  • Optimised Lambda artifact workflow to resolve image metadata first, detect existing immutable git-tagged images in ECR, and set should_build before any Docker actions.

  • Made ECR login, Buildx setup, and Docker build/push conditional on should_build=true, adding GitHub Actions layer caching (cache-from/cache-to) to speed required rebuilds.

  • Preserved deployment behavior and interface by always emitting final digest (built or reused) and keeping downstream outputs unchanged: image_version, image_digest, image_uri.

…Introduced a build metadata preparation step to check for existing images before building and pushing, enhancing efficiency. Updated ECR login and Docker build steps to conditionally execute based on the presence of existing images, improving deployment reliability.
Comment thread .github/workflows/deploy-lambda-artifact.yml
Comment thread .github/workflows/deploy-lambda-artifact.yml
Comment thread .github/workflows/deploy-lambda-artifact.yml
Copy link
Copy Markdown
Contributor

@avshetty1980 avshetty1980 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few comments

avshetty1980
avshetty1980 previously approved these changes Apr 13, 2026
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 1 pipeline(s).

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants