@@ -71,7 +71,7 @@ docs:check Kubernetes API docs:
71
71
before_script :
72
72
- gem install gitlab --no-doc
73
73
# We need to download the script rather than clone the repo since the
74
- # review-docs-cleanup job will not be able to run when the branch gets
74
+ # review-docs-cleanup and review-docs-hugo-cleanup jobs will not be able to run when the branch gets
75
75
# deleted (when merging the MR).
76
76
- apk add --update openssl
77
77
- wget https://gitlab.com/gitlab-org/gitlab/-/raw/master/scripts/trigger-build.rb
@@ -85,7 +85,7 @@ docs:check Kubernetes API docs:
85
85
86
86
# Trigger a docs build in gitlab-docs
87
87
# Useful to preview the docs changes live
88
- # https://docs.gitlab.com/ee/development/documentation/index .html#previewing-the-changes-live
88
+ # https://docs.gitlab.com/ee/development/documentation/review_apps .html
89
89
review-docs-deploy :
90
90
extends :
91
91
- .review-docs
@@ -108,3 +108,27 @@ review-docs-cleanup:
108
108
action : stop
109
109
script :
110
110
- ./trigger-build.rb docs cleanup
111
+
112
+ # Trigger a docs build in gitlab-docs-hugo
113
+ # Useful to preview the docs changes live
114
+ # https://docs.gitlab.com/ee/development/documentation/review_apps.html
115
+ review-docs-hugo-deploy :
116
+ extends :
117
+ - .review-docs
118
+ environment :
119
+ name : review-docs/mr-${CI_MERGE_REQUEST_IID}-hugo
120
+ auto_stop_in : 2 weeks
121
+ url : https://new.docs.gitlab.com/upstream-review-mr-${DOCS_GITLAB_REPO_SUFFIX}-${CI_MERGE_REQUEST_IID}/${DOCS_GITLAB_REPO_SUFFIX}
122
+ on_stop : review-docs-hugo-cleanup
123
+ script :
124
+ - ./trigger-build.rb docs-hugo deploy
125
+
126
+ # Cleanup remote environment of gitlab-docs-hugo
127
+ review-docs-hugo-cleanup :
128
+ extends :
129
+ - .review-docs
130
+ environment :
131
+ name : review-docs/mr-${CI_MERGE_REQUEST_IID}-hugo
132
+ action : stop
133
+ script :
134
+ - ./trigger-build.rb docs-hugo cleanup
0 commit comments