-
Notifications
You must be signed in to change notification settings - Fork 1
feat: 👷 Split CI and CD flows #31
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
Also makes sure docker doesn't run on PRs
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.
Pull request overview
Splits the combined CI/CD GitHub Actions workflow into separate CI and CD workflows to prevent docker image publishing from running on pull requests.
Changes:
- Renamed the existing combined workflow to CI and removed docker + deploy jobs from it.
- Added a new CD workflow that runs quality checks, builds/pushes docker images, and deploys on pushes to
main.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/CI.yml | Keeps only the quality checks under CI; removes docker build/push and deploy jobs. |
| .github/workflows/CD.yml | New workflow to run quality → docker → deploy on push to main. |
Comments suppressed due to low confidence (1)
.github/workflows/CI.yml:7
- CI workflow currently runs on
pushtomainand the new CD workflow also runs onpushtomain(and includes the samequalityreusable workflow). This will cause duplicatequalityruns for every merge/push tomain, increasing CI time and noise. Consider changing CI to run only onpull_request(or onpushto non-main branches), and keepqualityin CD as the gate for docker/deploy, or alternatively trigger CD from CI viaworkflow_runso quality is not executed twice.
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
e587b69 to
140ea56
Compare
This splits the CI and CD flows into separate workflows, and also makes sure docker doesn't run on PRs, which clutters our package index