fix: strip ports and digests from service aliases - #1820
Merged
Conversation
firecow
approved these changes
Apr 3, 2026
firecow
left a comment
Owner
There was a problem hiding this comment.
Solid fix. Strips registry ports and digests correctly from service aliases, deduplicates the alias logic, and has thorough test coverage.
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Apr 7, 2026
This MR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [npm:gitlab-ci-local](https://github.com/firecow/gitlab-ci-local) | `4.70.0` → `4.70.1` |  |  |  |  | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>firecow/gitlab-ci-local (npm:gitlab-ci-local)</summary> ### [`v4.70.1`](https://github.com/firecow/gitlab-ci-local/releases/tag/4.70.1) [Compare Source](firecow/gitlab-ci-local@4.70.0...4.70.1) #### What's Changed - fix: GCL\_ array env vars not splitting semicolon-separated values by [@​firecow](https://github.com/firecow) in [#​1778](firecow/gitlab-ci-local#1778) - fix: strip ports and digests from service aliases by [@​bidord](https://github.com/bidord) in [#​1820](firecow/gitlab-ci-local#1820) - fix: SonarCloud code smells by [@​firecow](https://github.com/firecow) in [#​1822](firecow/gitlab-ci-local#1822) - chore(deps): update github/codeql-action action to v4.34.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​1807](firecow/gitlab-ci-local#1807) - chore(deps): update github/codeql-action action to v4.35.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​1808](firecow/gitlab-ci-local#1808) - chore(deps): lock file maintenance by [@​renovate](https://github.com/renovate)\[bot] in [#​1811](firecow/gitlab-ci-local#1811) - build(deps): bump path-to-regexp from 0.1.12 to 0.1.13 in /examples/docker-compose-nodejs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1816](firecow/gitlab-ci-local#1816) - chore(deps): update sonarsource/sonarqube-scan-action action to v7.1.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​1818](firecow/gitlab-ci-local#1818) - chore(deps): update dependency typescript to v6 by [@​renovate](https://github.com/renovate)\[bot] in [#​1812](firecow/gitlab-ci-local#1812) #### New Contributors - [@​bidord](https://github.com/bidord) made their first contribution in [#​1820](firecow/gitlab-ci-local#1820) **Full Changelog**: <firecow/gitlab-ci-local@4.70.0...4.70.1> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDQuOCIsInVwZGF0ZWRJblZlciI6IjQzLjEwNC44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6cGF0Y2giXX0=-->
kevingerman
pushed a commit
to kevingerman/gitlab-ci-local
that referenced
this pull request
Apr 10, 2026
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.
Context
Service aliases containing registry ports (
:443) or image digests (@sha256:...) are not stripped correctly, causing healthcheck failures.See both examples below.
Job with a service name that includes a registry port
.gitlab-ci.yml
Output
Job with a service name that includes a Docker image digest
This is common when using Renovate's digest pinning.
.gitlab-ci.yml
Output
Change
Utils.getAllServiceAliases()andUtils.getServiceAlias()job.tsto fix the issueSummary by cubic
Fix service alias generation by stripping registry ports, tags, and digests so health checks resolve correctly and services start as expected. This prevents failures with registry ports (e.g.,
:443) and digest-pinned images.Utils.getAllServiceAliasesandUtils.getServiceAlias(strip:port,:tag,@sha256:...; produce-and__variants; honor custom aliases).job.tsto use these aliases for variable expansion and health checks.Written for commit 02ed47b. Summary will update on new commits.