How to include a private Gitlab repository into composerΒΆ
- Setup the repository as a dependency in composer.json:
- Create a project access token. Needs at least reporter level. DO NOT USE guest
- Add the token to Gitlab CI/CD variables as eg. GITLAB_TOKEN
- Send the token as a build-arg to Podman / Docker:
- In the Dockerfile do this:
- ...
- Profit