Skip to content
Snippets Groups Projects
Commit f74fdc22c0ae authored by Evan Read's avatar Evan Read
Browse files

Add ability to create review apps by using the GitLab Docs Hugo project

parent 0bc753bb86b0
No related branches found
No related tags found
1 merge request!170Merge upstream Omnibus GitLab into Omnibus Heptapod
......@@ -13,11 +13,10 @@
## `omnibus-gitlab` packages
`omnibus-gitlab` uses the [omnibus](https://github.com/chef/omnibus) tool for
building packages for the supported operating systems. The omnibus tool will detect
the OS where it is being used and build packages for that OS. It is recommended
to use a Docker container corresponding to the OS as the environment for building
packages.
`omnibus-gitlab` uses [Omnibus](https://github.com/chef/omnibus) for
building packages for the supported operating systems. Omnibus detects
the OS where it is being used and build packages for that OS. You should use a
Docker container corresponding to the OS as the environment for building packages.
How to build a custom package locally is described in the
[dedicated document](build_package.md).
......
......@@ -142,7 +142,7 @@
before_script:
- gem install gitlab --no-doc
# We need to download the script rather than clone the repo since the
# review-docs-cleanup job will not be able to run when the branch gets
# review-docs-cleanup and review-docs-hugo-cleanup job will not be able to run when the branch gets
# deleted (when merging the MR).
- apk add --update openssl
- wget https://gitlab.com/gitlab-org/gitlab/-/raw/master/scripts/trigger-build.rb
......@@ -327,6 +327,30 @@
script:
- ./trigger-build.rb docs cleanup
# Trigger a docs build in gitlab-docs-hugo
# Useful to preview the docs changes live
# https://docs.gitlab.com/ee/development/documentation/review_apps.html
review-docs-hugo-deploy:
extends:
- .review-docs
environment:
name: review-docs/mr-${CI_MERGE_REQUEST_IID}-hugo
url: https://new.docs.gitlab.com/upstream-review-mr-${DOCS_GITLAB_REPO_SUFFIX}-${CI_MERGE_REQUEST_IID}/${DOCS_GITLAB_REPO_SUFFIX}
auto_stop_in: 2 weeks
on_stop: review-docs-hugo-cleanup
script:
- ./trigger-build.rb docs-hugo deploy
# Cleanup remote environment of gitlab-docs-hugo
review-docs-hugo-cleanup:
extends:
- .review-docs
environment:
name: review-docs/mr-${CI_MERGE_REQUEST_IID}-hugo
action: stop
script:
- ./trigger-build.rb docs-hugo cleanup
include:
- component: ${CI_SERVER_FQDN}/gitlab-org/components/danger-review/danger-review@2.0.0
inputs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment