I am trying to make a shared pipeline repository, from where I am running a Dangerfile. The cool thing here should be that each repo could simply include the shared-pipeline repo's Dangerfile and .gitlab-ci.yml-file and then get all the cool stuff from it. My problem is, from repo1 I am trying to use include to inherit the Dangerfile from repository shared-pipeline. However, it is only possible to include .yaml files. I can include .gitlab-ci.yml, but how do I include external files such as the Dangerfile?
├── shared-pipeline
│ ├── Dangerfile
│ └── .gitlab-ci.yml
├── repo1
│ └── .gitlab-ci.yml
├── repo2
│ └── .gitlab-ci.yml
└── repo3
└── .gitlab-ci.yml
This is what I have so far:
include:
- project: 'myproject/shared-pipeline'
file: '.gitlab-ci.yml'
This is what I was trying:
include:
- project: 'myproject/shared-pipeline'
file: '.gitlab-ci.yml'
- project: 'myproject/shared-pipeline'
file: 'Dangerfile' # Syntax error here as this is no yml file