-
Notifications
You must be signed in to change notification settings - Fork 2k
ensure we don't tag 'latest' with cloud images #4688
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 ↗︎
|
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 modifies Docker image tagging logic across multiple workflow files to prevent cloud images from being incorrectly tagged as 'latest'.
- Added
LATEST_TAG
environment variable indocker-build-push-backend-container-on-tag.yml
that requires both 'latest' in ref name AND absence of 'cloud' tag - Removed 'latest' tag functionality entirely from
docker-build-push-cloud-web-container-on-tag.yml
- Fixed inconsistency in
docker-build-push-web-container-on-tag.yml
where LATEST_TAG only checks for 'latest' but not 'cloud' - Missing testing details in PR description need to be added before merging
- Recommend verifying changes across all workflow files to ensure consistent behavior
4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
* ensure we don't tag 'latest' with cloud images * add docker login to trivy * fix tag names * flavor latest false (no auto latest tags) * fix typo * only run the appropriate workflow for web --------- Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app> Co-authored-by: Richard Kuo <rkuo@rkuo.com>
* ensure we don't tag 'latest' with cloud images * add docker login to trivy * fix tag names * flavor latest false (no auto latest tags) * fix typo * only run the appropriate workflow for web --------- Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app> Co-authored-by: Richard Kuo <rkuo@rkuo.com>
* ensure we don't tag 'latest' with cloud images * add docker login to trivy * fix tag names * flavor latest false (no auto latest tags) * fix typo * only run the appropriate workflow for web --------- Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app> Co-authored-by: Richard Kuo <rkuo@rkuo.com>
Description
Fixes https://linear.app/danswer/issue/DAN-1961/cloud-images-are-being-tagged-as-latest
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.