Skip to content

fix: pass short service_name to action-ado-deploy to match helm release limit#223

Merged
Trozz merged 1 commit intomainfrom
feature/shorten-deploy-service-name
Apr 14, 2026
Merged

fix: pass short service_name to action-ado-deploy to match helm release limit#223
Trozz merged 1 commit intomainfrom
feature/shorten-deploy-service-name

Conversation

@Trozz
Copy link
Copy Markdown
Contributor

@Trozz Trozz commented Apr 14, 2026

Summary

  • Hardcode `service_name` passed to `hmcts/action-ado-deploy@v1` from `${{ needs.build.outputs.repo_name }}` (54 chars) to `hearing-results-document-subscription` (36 chars).
  • The repo name exceeds Helm's 53-char release name limit, causing deploys to fail with `Error: release name is invalid`.
  • The deploy action uses this value to look up `.services.<service_name>.image.tag` in `cp-vp-aks-deploy/vp-config/services_values.yml`, so the new key there must already exist.

Coordination

Depends on: hmcts/cp-vp-aks-deploy#TBD (renames the yaml key to match)

Merge the deploy-repo PR first, then this one.

Test plan

  • Confirm deploy-repo PR is merged
  • Merge this PR
  • Verify next deploy run succeeds end-to-end

…se limit

The repo name service-cp-crime-hearing-results-document-subscription is 54 chars,
one over Helm's 53-char release name limit. Hardcode service_name to the short
form hearing-results-document-subscription so the deploy action writes to the
correct key in cp-vp-aks-deploy/vp-config/services_values.yml.
@Trozz Trozz requested a review from a team as a code owner April 14, 2026 13:10
Copilot AI review requested due to automatic review settings April 14, 2026 13:10
Copy link
Copy Markdown

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

Updates the GitHub Actions deployment workflow to pass a shorter service_name into hmcts/action-ado-deploy@v1, avoiding Helm’s 53-character release name limit that can be exceeded by the repository name.

Changes:

  • Hardcode service_name for the ADO deploy action to hearing-results-document-subscription instead of using ${{ needs.build.outputs.repo_name }}.

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

@Trozz Trozz enabled auto-merge April 14, 2026 13:14
@Trozz Trozz merged commit da17318 into main Apr 14, 2026
19 checks passed
@Trozz Trozz deleted the feature/shorten-deploy-service-name branch April 14, 2026 13:19
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