Commit cb23536d authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Add charts to the trigger-build-docs script

This adds the charts project to the list of the projects
that can use the script to trigger review apps for docs.

The slug that's used for each project was defined by the
CI_PROJECT_NAME variable. Now that we're adding charts to
the mix, we need to find a different way, since the charts
project (gitlab-org/charts/gitlab) has the same CI_PROJECT_NAME
as GitLab (gitlab-org/gitlab).

Thus, we need a different way to differentiate the two projects.
parent 84c0ffe1
......@@ -72,15 +72,17 @@ end
# Define suffix in review app URL based on project
#
def slug
case ENV["CI_PROJECT_NAME"]
when 'gitlab-foss'
case ENV["CI_PROJECT_PATH"]
when 'gitlab-org/gitlab-foss'
'ce'
when 'gitlab'
when 'gitlab-org/gitlab'
'ee'
when 'gitlab-runner'
when 'gitlab-org/gitlab-runner'
'runner'
when 'omnibus-gitlab'
when 'gitlab-org/omnibus-gitlab'
'omnibus'
when 'gitlab-org/charts/gitlab'
'charts'
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment