Using composer, I want to install repository from our private gitlab (internal gitlab not available online). I tried different approach, but did not seems to get what I want.
In composer.json, here is how I added a repository from our personnal gitlab.
"repositories": {
"domain-wordpress/plugin-flux-mention": {
"type": "git",
"url": "http://git.domain.com/wordpress/plugin-flux-mention.git"
}
}
I tried using type vcs, or type gitlab but I add some authentification problem, so does anyone know how to set authentification for every single type (git, gitlab or vcs)?
Using the type git I managed to pass authentification problem. For type git I had to add the following in composer.json
"config": {
"gitlab-domains": ["git.domain.com"],
"gitlab-token": {"git.domain.com": "Mytoken"}
},
With those two configuration, everything work, but the master branched is used when I do not specify a tag. How can I tell composer to only install tag ?
Cache:
Using type git is there any cache ?
Using vcs, I seemed to have some kind of cache but I'm not sure.