Skip to content

Conversation

rkuo-danswer
Copy link
Contributor

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.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

Copy link

vercel bot commented May 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2025 4:51am

@rkuo-danswer rkuo-danswer marked this pull request as ready for review May 9, 2025 23:22
@rkuo-danswer rkuo-danswer requested a review from a team as a code owner May 9, 2025 23:22
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 in docker-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

@rkuo-danswer rkuo-danswer added this pull request to the merge queue May 12, 2025
Merged via the queue into main with commit 6b9d0b5 May 12, 2025
25 checks passed
@rkuo-danswer rkuo-danswer deleted the bugfix/docker-latest-tags branch May 12, 2025 18:14
ferdinandl007 pushed a commit to ferdinandl007/onyx that referenced this pull request May 19, 2025
* 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>
ZhipengHe pushed a commit to ZhipengHe/onyx that referenced this pull request Jun 6, 2025
* 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>
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* 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>
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