Open ojsef39 opened 1 day ago
Ive also tried using variables to set the HOST and so one but had no luck with that, something like this:
Pretty ugly but this workaround does the trick:
stages: [build]
include:
- remote: 'https://git.url.de/group/gitlab-ci-templates/-/raw/main/Jobs/Job.gitlab-ci.yml'
Also had to set NODE_EXTRA_CA_CERTS="$(brew --prefix)/etc/ca-certificates/cert.pem"
so it works with on macos with a self-signed cert
---
stages: [build]
include:
- project: 'group/gitlab-ci-templates'
file:
- Jobs/Job.gitlab-ci.yml
I don't have a self hosted gitlab to test... but this should work with gitlab-ci-local
though, i am not sure whether your self hosted gitlab will implicitly read the include:project
from gitlab.com
or git.url.de
?
We currently do not supports this syntax - project: 'https://git.url.de/group/gitlab-ci-templates'
...
wasn't aware that this is supported, since it does'nt seemed to be documented in gitlab.com docs
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior Getting includes from correct URL not gitlab.com/self-hosted.url/ (Not public)
Host information macOS 15.1.1 (24B91) gitlab-ci-local 4.55.0
Containerd binary podman
Additional context Logs: