Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
35c45f7e
Commit
35c45f7e
authored
Nov 17, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a prerequisites section, add some links
parent
a81546de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
doc/ci/review_apps/index.md
doc/ci/review_apps/index.md
+22
-5
No files found.
doc/ci/review_apps/index.md
View file @
35c45f7e
...
@@ -31,7 +31,16 @@ In the image above you can see that the `add-new-line` branch was successfully
...
@@ -31,7 +31,16 @@ In the image above you can see that the `add-new-line` branch was successfully
built and deployed under a dynamic environment and can be previewed with an
built and deployed under a dynamic environment and can be previewed with an
also dynamically URL.
also dynamically URL.
---
The details of the Review Apps implementation depend widely on your real
technology stack and on your deployment process. The simplest case it to
deploy a simple static HTML website, but it will not be that straightforward
when your app is using a database for example. To make a branch be deployed
on a temporary instance and booting up this instance with all required software
and services automatically on the fly is not a trivial task. However, it is
doable, especially if you use Docker, or at least a configuration management
tool like Chef, Puppet, Ansible or Salt.
## Prerequisites
To get a better understanding of Review Apps, you must first learn how
To get a better understanding of Review Apps, you must first learn how
environments and deployments work. The following docs will help you grasp that
environments and deployments work. The following docs will help you grasp that
...
@@ -51,11 +60,15 @@ knowledge:
...
@@ -51,11 +60,15 @@ knowledge:
## Configuration
## Configuration
For configuration examples see the [dynamic environments] documentation.
The configuration of Review apps depends on your technology stack and your
infrastructure. Read the [dynamic environments] documentation to understand
how to define and create them.
## Creating and destroying Review Apps
## Creating and destroying Review Apps
The creation and destruction of a Review App is defined in
`.gitlab-ci.yml`
.
The creation and destruction of a Review App is defined in
`.gitlab-ci.yml`
at a job level under the
`environment`
keyword.
Check the [environments] documentation how to do so.
Check the [environments] documentation how to do so.
## A simple workflow
## A simple workflow
...
@@ -63,11 +76,12 @@ Check the [environments] documentation how to do so.
...
@@ -63,11 +76,12 @@ Check the [environments] documentation how to do so.
The process of adding Review Apps in your workflow would look like:
The process of adding Review Apps in your workflow would look like:
1.
Set up the infrastructure to host and deploy the Review Apps.
1.
Set up the infrastructure to host and deploy the Review Apps.
1.
Install and configure a Runner that does the deployment.
1.
[
Install
][
install-runner
]
and
[
configure
][
conf-runner
]
a Runner that does
the deployment.
1.
Set up a job in
`.gitlab-ci.yml`
that uses the predefined
1.
Set up a job in
`.gitlab-ci.yml`
that uses the predefined
[
predefined CI environment variable
][
variables
]
`${CI_BUILD_REF_NAME}`
to
[
predefined CI environment variable
][
variables
]
`${CI_BUILD_REF_NAME}`
to
create dynamic environments and restrict it to run only on branches.
create dynamic environments and restrict it to run only on branches.
1.
Optionally set a job that
stops
the Review Apps.
1.
Optionally set a job that
[
manually stops
][
manual-env
]
the Review Apps.
From there on, you would follow the branched Git flow:
From there on, you would follow the branched Git flow:
...
@@ -115,3 +129,6 @@ And below is a soon to be added examples list:
...
@@ -115,3 +129,6 @@ And below is a soon to be added examples list:
[
merge request
]:
../../user/project/merge_requests.md
[
merge request
]:
../../user/project/merge_requests.md
[
variables
]:
../variables/README.md
[
variables
]:
../variables/README.md
[
yaml-env
]:
../yaml/README.md#environment
[
yaml-env
]:
../yaml/README.md#environment
[
install-runner
]:
https://docs.gitlab.com/runner/install/
[
conf-runner
]:
https://docs.gitlab.com/runner/commands/
[
manual-env
]:
../environments.md#stopping-an-environment
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment