ci(workflows): split build-and-deploy into reusable build and deploy …#376
Merged
Conversation
…workflows - Add build.yml: reusable workflow for Docker image build + push to GHCR - Add deploy.yml: reusable workflow for k8s manifest image tag update - Add pr-build.yml: /build PR comment trigger (build only, no deploy) - Update deploy-to-dev.yml: use build -> deploy pipeline - Update deploy-prod.yml: use build -> deploy pipeline - Update pr-deploy-instructions.yml: full manifest PR workflow steps - Delete build-and-deploy.yml: replaced by build.yml + deploy.yml
🚀 Deploy this PRTo deploy this branch to the dev environment, go to the Deploy to Dev workflow and click Run workflow with this PR number. This will build a Docker image from your branch, push it to GHCR, and trigger an ArgoCD sync. |
There was a problem hiding this comment.
Pull request overview
This PR restructures the CI/CD GitHub Actions setup by splitting the previous combined build+deploy logic into reusable workflows, and adds a PR-comment-driven build path to support manifest-change testing flows.
Changes:
- Introduces reusable
build.yml(build/push to GHCR) anddeploy.yml(update k8s manifest image tag + commit/push). - Adds
pr-build.ymlto trigger image builds via/buildPR comments and report results back to the PR. - Updates
deploy-to-dev.yml,deploy-prod.yml, and PR deployment instructions to use the new build → deploy pipeline and revised manual steps.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/build.yml | New reusable workflow to build and push Docker images to GHCR. |
| .github/workflows/deploy.yml | Refactored reusable workflow to update k8s manifest image tag and push the change. |
| .github/workflows/pr-build.yml | New /build comment-triggered PR image build workflow with PR notification. |
| .github/workflows/deploy-to-dev.yml | Updated to run build then deploy using the reusable workflows. |
| .github/workflows/deploy-prod.yml | Updated to run build then deploy using the reusable workflows. |
| .github/workflows/pr-deploy-instructions.yml | Updated PR comment instructions to reflect the new build-only and manifest-change deployment flow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…workflows