GitLab has added the CI/CD components in their latest versions, and I would like to use it to build a sort of library to use in my projects. Except in some components I would like to include some files and scripts (Fastfile, Dockerfile etc..). In the document it clearly shows that a component can have multiple files :
But when I include my component like this :
include:
- component: <domain>/<group>/<project>/build-android@feature-android
inputs:
image: android:jdk17-33-33.0.1
bundle_id: com.example.com
build_type: release
flavor: staging
I do import the template but then it cannot the scripts and files that reside in the same component repository.
I tried to import the component like this, as the documentation states :
include:
- component: <domain>/<group>/<project>/build-android@feature-android
inputs:
image: android:jdk17-33-33.0.1
bundle_id: com.example.com
build_type: release
flavor: staging
But all I get is the yaml template without the files. I would like to get the files in the same component repository as well.
I am using Gitlab version 16.7