Skip to content

add: add basic workflow template - #16

Merged
rredgrave11621 merged 13 commits into
mainfrom
feat/workflow_template
Aug 28, 2026
Merged

add: add basic workflow template#16
rredgrave11621 merged 13 commits into
mainfrom
feat/workflow_template

Conversation

@rredgrave11621

Copy link
Copy Markdown
Contributor

betterleaks-Scan: passed

betterleaks-Scan: passed
@rredgrave11621
rredgrave11621 requested a review from kiennkt August 6, 2026 07:25
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 644e37cb-c14c-4d54-a6ec-d47c7b9af7d5

Summary by CodeRabbit

  • New Features

    • Added a reusable CI/CD pipeline for building, scanning, testing, and publishing container images.
    • Added configurable manual options for commit selection, testing, and image retention.
    • Added automated semantic-release promotion to versioned and latest image tags.
    • Added chart and stacked-chart update publishing.
    • Added scheduled and manual cleanup of expired test images while preserving release images.
    • Added workflow templates and metadata for easier setup and discovery.
  • Maintenance

    • Updated workflow security scanning and artifact tools to newer versions.

Walkthrough

Added reusable container build, CI/CD, chart publication, and GHCR cleanup automation. The change also updates GitHub Actions versions used by security workflows.

Changes

Container workflow automation

Layer / File(s) Summary
Shared container build action
actions/run_build/action.yml
The action prepares image metadata, parses commit flags, checks GHCR, builds and scans images, optionally starts a container, and publishes image tags.
CI/CD pipeline workflow
workflow-templates/ci_cd_pipeline.properties.json, workflow-templates/ci_cd_pipeline.yml
The workflow invokes the shared action, runs repository tests, uploads test reports, removes failed images when allowed, and promotes successful images through semantic releases.
Chart publication action
actions/publish_chart_updates/action.yml
The action updates chart image tags, generates stacked-chart metadata, and signs and pushes chart repository changes.
GHCR test image cleanup
workflow-templates/cleanup.properties.json, workflow-templates/cleanup.yml
The workflow validates retention settings, filters expired test tags while preserving release tags, and deletes matching GHCR versions.
Security workflow action updates
.github/workflows/scan-secret.yml, actions/run_trivy_scan_dockerfile/action.yml, actions/run_trivy_scan_image/action.yml, actions/trivy-scan/action.yml
The workflows use newer checkout, SARIF upload, and artifact upload action versions. The Trivy failure exit behavior remains unchanged.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant SharedBuildAction
  participant GHCR
  participant TestJob
  participant SemanticRelease
  participant ChartUpdater
  GitHubActions->>SharedBuildAction: build, scan, and publish image
  SharedBuildAction->>GHCR: push commit-tagged image
  GitHubActions->>TestJob: pull and test image
  TestJob->>GHCR: delete failed image when allowed
  GitHubActions->>SemanticRelease: run release after successful tests
  SemanticRelease->>GHCR: promote versioned and latest tags
  SemanticRelease->>ChartUpdater: publish chart updates
Loading

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

betterleaks-Scan: passed
Comment thread workflow-templates/ci.yml
Comment thread workflow-templates/ci_cd_pipeline.yml Outdated
Comment thread workflow-templates/ci_cd_pipeline.yml Outdated
Comment thread workflow-templates/ci_cd_pipeline.yml Outdated
Comment thread workflow-templates/ci_cd_pipeline.yml Outdated
Comment thread actions/run_build/action.yml Outdated
betterleaks-Scan: passed
betterleaks-Scan: passed
@rredgrave11621
rredgrave11621 requested a review from kiennkt August 17, 2026 04:26
betterleaks-Scan: passed
betterleaks-Scan: passed
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@rredgrave11621
rredgrave11621 force-pushed the feat/workflow_template branch from 653c17b to b9b8a42 Compare August 26, 2026 07:40
@rredgrave11621
rredgrave11621 force-pushed the feat/workflow_template branch from b9b8a42 to ab6b9ed Compare August 26, 2026 07:45
Comment thread workflow-templates/ci.yml Outdated
Comment thread actions/publish_chart_updates/action.yml Outdated
Comment thread actions/publish_chart_updates/action.yml Outdated
Comment thread workflow-templates/ci.yml Outdated
Comment thread workflow-templates/ci.yml Outdated

@kiennkt kiennkt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@rredgrave11621
rredgrave11621 merged commit a1a224e into main Aug 28, 2026
3 checks passed
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.

2 participants