Issue #3499267: Include variables when CI_SERVER_HOST=git.drupal.org (for gitlab-ci-local)
This change, as suggested by @angkeith in https://github.com/firecow/gitlab-ci-local/issues/1467, seems to resolve the issue for me.
Testing with gitlab-ci-local v4.56.2, I created this MR then changed the following in my project's .gitlab-ci.yml:
include:
- project: issue/gitlab_templates-3499267
ref: 3499267-remote-vars
file:
- '/includes/include.drupalci.main.yml'
- '/includes/include.drupalci.variables.yml'
- '/includes/include.drupalci.workflows.yml'
With this change, running gitlab-ci-local --remote-variables git@git.drupal.org:project/gitlab_templates=includes/include.drupalci.variables.yml=1.0.x --variable="_GITLAB_TEMPLATES_REPO=project/gitlab_templates" pulled Docker images and ran jobs as expected.
With the change reversed, I was able to reproduce the issue with gitlab-ci-local --remote-variables git@git.drupal.org:project/gitlab_templates=includes/include.drupalci.variables.yml=1.0.x --variable="_GITLAB_TEMPLATES_REPO=project/gitlab_templates" once more.