Skip to content

ci(workflows): split build-and-deploy into reusable build and deploy …#376

Merged
Pierre-Demessence merged 2 commits into
masterfrom
feature/better-workflows
Apr 3, 2026
Merged

ci(workflows): split build-and-deploy into reusable build and deploy …#376
Pierre-Demessence merged 2 commits into
masterfrom
feature/better-workflows

Conversation

@Pierre-Demessence

Copy link
Copy Markdown
Member

…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

…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
Copilot AI review requested due to automatic review settings April 3, 2026 04:03
@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown

🚀 Deploy this PR

To 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.

Comment thread .github/workflows/build.yml Dismissed

Copilot AI left a comment

Copy link
Copy Markdown

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 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) and deploy.yml (update k8s manifest image tag + commit/push).
  • Adds pr-build.yml to trigger image builds via /build PR 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.

Comment thread .github/workflows/pr-build.yml Outdated
Comment thread .github/workflows/pr-build.yml
Comment thread .github/workflows/build.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Pierre-Demessence Pierre-Demessence merged commit fea7a9f into master Apr 3, 2026
5 checks passed
@Pierre-Demessence Pierre-Demessence deleted the feature/better-workflows branch April 3, 2026 14:25
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.

3 participants