Remote variables not populated for drupalci/php image ref with gitlab-ci-local usage

Migrated issue

Reported by: xurizaemon

Related to !318 (merged)

Problem/Motivation

Using gitlab-ci-local as documented in docs works up to gitlab-ci-local 4.55.0, and fails from 4.56.0, with the error message Error: Command failed with exit code 1: docker pull drupalci/php--

Steps to reproduce

0. Use `gitlab-ci-local` v4.56.0 or greater to observe this behaviour
1. Clone a Drupal contrib module with Gitlab CI configuration
2. Use gitlab-ci-local with support for Drupal's Gitlab CI configuration (docs)

With gitlab-ci-local v4.55.0 or below: tests run.

With gitlab-ci-local v4.56.0: tests fail with "Error: Command failed with exit code 1: docker pull drupalci/php--" (note the incomplete image ref).

Proposed resolution

Per https://github.com/firecow/gitlab-ci-local/issues/1467, `gitlab-ci-local` uses `git remote -v` to populate `CI_SERVER_HOST`, which fails when the remote is `git.drupal.org`.

If we permit both `git.drupalcode.org` and `git.drupal.org` in the variables configuration, the variables will be included and the image references are correct once more.

Remaining tasks

User interface changes

API changes

Data model changes

Assignee Loading
Time tracking Loading