Add instructions for defining stages
This commit is contained in:
parent
895b6064f3
commit
427a33124a
|
@ -780,15 +780,19 @@ It is also possible to copy and paste the contents of the [Auto DevOps
|
||||||
template] into your project and edit this as needed. You may prefer to do it
|
template] into your project and edit this as needed. You may prefer to do it
|
||||||
that way if you want to specifically remove any part of it.
|
that way if you want to specifically remove any part of it.
|
||||||
|
|
||||||
### Using components of Auto-DevOps
|
### Using components of Auto DevOps
|
||||||
|
|
||||||
If you only require a subset of the features offered by Auto-DevOps, you can include
|
If you only require a subset of the features offered by Auto DevOps, you can include
|
||||||
individual Auto-DevOps jobs into your own `.gitlab-ci.yml`.
|
individual Auto DevOps jobs into your own `.gitlab-ci.yml`. Each component job relies
|
||||||
|
on a stage that should be defined in the `.gitlab-ci.yml` that includes the template.
|
||||||
|
|
||||||
For example, to make use of [Auto Build](#auto-build), you can add the following to
|
For example, to make use of [Auto Build](#auto-build), you can add the following to
|
||||||
your `.gitlab-ci.yml`:
|
your `.gitlab-ci.yml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- template: Jobs/Build.gitlab-ci.yml
|
- template: Jobs/Build.gitlab-ci.yml
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue