-
Notifications
You must be signed in to change notification settings - Fork 2.1k
restore caching and fix up some prefixing #4649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…ix/docker-cache-redux # Conflicts: # .github/workflows/docker-build-push-web-container-on-tag.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR restores Docker layer caching functionality across multiple workflow files by implementing S3-based caching with proper platform-specific prefixes and deployment type separation.
- Added DEPLOYMENT environment variable (
cloud
/standalone
) in all workflow files to properly segment caches - Implemented platform-specific cache prefixing (e.g.,
backend-linux-amd64
) to prevent cache conflicts between architectures - Removed/commented out
no-cache: true
directives that were preventing caching from working - Added proper matrix build support for
linux/amd64
andlinux/arm64
in backend container workflow - Fixed artifact naming patterns to include run IDs and prevent collisions between parallel builds
6 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile
.github/workflows/docker-build-push-cloud-web-container-on-tag.yml
Outdated
Show resolved
Hide resolved
.github/workflows/docker-build-push-backend-container-on-tag.yml
Outdated
Show resolved
Hide resolved
.github/workflows/docker-build-push-model-server-container-on-tag.yml
Outdated
Show resolved
Hide resolved
.github/workflows/docker-build-push-cloud-web-container-on-tag.yml
Outdated
Show resolved
Hide resolved
.github/workflows/docker-build-push-model-server-container-on-tag.yml
Outdated
Show resolved
Hide resolved
* restore caching and fix up some prefixing * try backend matrix build and fix artifact names * need id * add backslashes to be consistent * fix no-cache * leave docker tags to the meta action * need checkout in merge * add comment * move spammy logs to debug status * bunch of no-cache updates * prefix --------- Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
* restore caching and fix up some prefixing * try backend matrix build and fix artifact names * need id * add backslashes to be consistent * fix no-cache * leave docker tags to the meta action * need checkout in merge * add comment * move spammy logs to debug status * bunch of no-cache updates * prefix --------- Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
Description
Fixes https://linear.app/danswer/issue/DAN-1935/fix-up-docker-image-caching-on-build.
How Has This Been Tested?
[Describe the tests you ran to verify your changes]
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.