feat(ci): add Aurora PR preview workflow with label-based deployment#834
feat(ci): add Aurora PR preview workflow with label-based deployment#834ArtieReus wants to merge 8 commits into
Conversation
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis PR introduces a new GitHub Actions workflow for building and publishing Docker images on pull requests, triggered by the ChangesPR Docker Image Build Workflow
Gitignore Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/build-push-aurora-pr-preview.yaml:
- Around line 124-128: The "Checkout repository" GitHub Actions step (uses:
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd) should explicitly
disable credential persistence to avoid leaking GitHub credentials; update that
step to include the input persist-credentials: false so the action does not
write credentials to the local git config during the run.
- Line 6: The workflow header comment references a missing
docs/aurora-pr-preview-workflow.md; update the reference in
.github/workflows/build-push-aurora-pr-preview.yaml to point to an existing
documentation file (for example docs/aurora_architecture_overview.md or
docs/semantic_release.md) or add a new docs/aurora-pr-preview-workflow.md file
with the workflow documentation; locate the reference string
"docs/aurora-pr-preview-workflow.md" in the workflow file and either replace it
with the chosen existing doc path or create the new markdown file with the
appropriate content.
- Around line 60-66: Replace the hardcoded label string 'pr-build' used in the
if condition that checks github.event.label.name with the environment variable
reference ${{ env.PR_BUILD_LABEL }} so the label comparison uses the
PR_BUILD_LABEL env var consistently (mirror the same pattern used elsewhere in
the workflow); update the expression where github.event.label.name == 'pr-build'
to compare against ${{ env.PR_BUILD_LABEL }} to avoid manual updates when the
label changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 3a7ff6e8-1ca3-487d-9fd8-a7d35d5ef84f
📒 Files selected for processing (2)
.github/workflows/build-push-aurora-pr-preview.yaml.gitignore
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to build/push PR-scoped Docker images to GHCR and trigger/cleanup PR preview deployments using pr-build / pr-preview labels.
Changes:
- Introduces a PR-preview build/push workflow gated by PR labels and PR event types.
- Adds GHCR cleanup jobs to delete outdated PR image tags and cleanup on PR close.
- Updates
.gitignoreto exclude a new local/tooling directory.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/build-push-aurora-pr-preview.yaml |
New label-driven PR preview build/push workflow plus image cleanup and label lifecycle handling. |
.gitignore |
Ignores .out-of-code-insights. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Summary
Adds a new GitHub Actions workflow for automated PR preview deployments of the Aurora Dashboard. The workflow builds Docker images when a PR is labeled with
pr-build, pushes them to GitHub Container Registry and manages ArgoCD deployment via label-based triggers.Changes Made
.github/workflows/build-push-aurora-pr-preview.yamlworkflow with comprehensive documentationpr-buildandpr-previewlabelspr-{NUMBER}-{SHA}(e.g.,pr-123-a1b2c3d)ghcr.io/{org}/aurora-pr-previewpr-previewlabel lifecycle (add after build, remove on new commits)Related Issues
Screenshots (if applicable)
N/A - This is a CI/CD workflow addition with no visual changes.
Testing Instructions
pr-buildlabel to the PRpr-previewlabel is added automatically after successful buildpr-previewlabel is removed and then re-added after rebuildpr-{NUMBER}-{SHA}Checklist
Summary by CodeRabbit