Skip to content

Chore: Adds build condition for pushing to latest on main scheduled build#126

Merged
bomoko merged 5 commits intomainfrom
chore/add_latest_to_main_builds_trivy
May 6, 2025
Merged

Chore: Adds build condition for pushing to latest on main scheduled build#126
bomoko merged 5 commits intomainfrom
chore/add_latest_to_main_builds_trivy

Conversation

@bomoko
Copy link
Contributor

@bomoko bomoko commented May 5, 2025

Adds "latest" tag to "main" builds on insights trivy image

@bomoko bomoko requested a review from tobybellwood May 5, 2025 19:58
@github-actions
Copy link

github-actions bot commented May 5, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@bomoko bomoko requested a review from Copilot May 5, 2025 19:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a build condition to automatically tag main branch builds with "latest" during scheduled builds.

  • Adds a new tag condition for the main branch in the insights trivy image workflow
  • Introduces a new step that conditionally applies the "latest" tag when the branch is main

@bomoko bomoko requested a review from Copilot May 5, 2025 20:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a build condition to tag "main" builds with "latest" for scheduled builds on the insights trivy image.

  • Adds a new tag condition to push a "latest" tag on the main branch
  • Updates the GitHub workflow to include a condition to enable this tag only for the main branch

@bomoko bomoko requested a review from Copilot May 5, 2025 20:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a build condition to push the "latest" tag when the insights-trivy-image workflow is executed on the main branch.

  • Introduces a new comment and condition for tagging builds as "latest" on the main branch.
  • Updates the GitHub Actions YAML file to enable this behavior during scheduled builds.

Copy link
Member

@tobybellwood tobybellwood left a comment

Choose a reason for hiding this comment

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

Yah - this looks good. Any update to the image will push a latest tag, and the nightly build will update the tag when the new db comes in.

We can always review whether daily is the correct frequency later!

@bomoko bomoko merged commit de43e06 into main May 6, 2025
6 checks passed
@github-actions github-actions bot mentioned this pull request May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants