gitlab-ci.yml include project from environment

Viewed 133

Is it possible, to dynamically change project with environment variable?

Something like:

include:
  - project: $STAGE_PROJECT_PATH
    file: '/job.yml'
1 Answers

If you're using GitLab 13.8 and above you should be able to use variables in the include section of your .gitlab-ci.yml. Refer to the documentation for examples:

Use variables with include

Related