Skip to content

AMP-313: Use centralized deploy workflow from cp-vp-aks-deploy#81

Open
Trozz wants to merge 3 commits intomainfrom
AMP-313/auto-deploy-pipeline
Open

AMP-313: Use centralized deploy workflow from cp-vp-aks-deploy#81
Trozz wants to merge 3 commits intomainfrom
AMP-313/auto-deploy-pipeline

Conversation

@Trozz
Copy link

@Trozz Trozz commented Mar 4, 2026

JIRA link (if applicable)

See AMP-313

Change description

Replace Update-Deploy-Config and Trigger-K8s-Deploy jobs with a single Deploy-To-K8s reusable workflow call to cp-vp-aks-deploy. Deployment logic is now centralized, reducing ~96 lines to 8.

Depends on https://github.com/hmcts/cp-vp-aks-deploy/pull/24 being merged first.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

@Trozz Trozz requested a review from a team as a code owner March 4, 2026 14:22
Copilot AI review requested due to automatic review settings March 4, 2026 14:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Centralizes Kubernetes deployment by delegating the “update service tag” step to the hmcts/cp-vp-aks-deploy reusable workflow, replacing the prior inline deploy logic and adding an explicit wait for the ADO pipeline run to complete before deploying.

Changes:

  • Pass a new deploy key secret (CP_VP_AKS_DEPLOY_KEY) and a deploy_environment input through the calling workflows.
  • Update the ADO deploy trigger step to capture the pipeline run_id, then add a monitoring job to wait for completion.
  • Add a Deploy-To-K8s job that calls the centralized reusable workflow in hmcts/cp-vp-aks-deploy.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/ci-released.yml Passes the new deploy key secret and deploy_environment into the reusable CI workflow for release runs.
.github/workflows/ci-draft.yml Passes the new deploy key secret and deploy_environment into the reusable CI workflow for non-release runs.
.github/workflows/ci-build-publish.yml Adds required deploy key secret + deploy environment input; introduces ADO run monitoring and delegates K8s deploy to the centralized reusable workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Trozz added 3 commits March 9, 2026 10:15
Add Wait-For-ACR-Push, Update-Deploy-Config, and Trigger-K8s-Deploy
jobs to ci-build-publish.yml. Upgrade trigger-ado-pipeline to v2 to
capture run_id. Add deploy_environment input for configurability.
@Trozz Trozz force-pushed the AMP-313/auto-deploy-pipeline branch from 4f0a198 to 9005523 Compare March 13, 2026 15:46
Deploy-To-K8s:
needs: [Wait-For-ACR-Push, Artefact-Version, Build]
if: ${{ inputs.trigger_deploy }}
uses: hmcts/cp-vp-aks-deploy/.github/workflows/update-service-tag.yml@main
Copy link
Contributor

Choose a reason for hiding this comment

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

this entry looks odd for the path

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