Hands-on task
GitLab CI: include an external file
The project app (cloned to /root/app, the web sign-in is on the GitLab tab) has a red pipeline on main: the test job can't find the built dist/. The build is described by the team's shared template templates/build.yml (a build job with an artifact), but it isn't included in .gitlab-ci.yml.
Include /templates/build.yml in .gitlab-ci.yml via include (the local type). Don't copy the template itself, and don't describe the build job in .gitlab-ci.yml. Push to main and get a green pipeline.
- gitlab ci
- include
- local
- modular configuration
- yaml