summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiger <twatson@gitlab.com>2019-04-01 15:59:29 +1100
committerTiger <twatson@gitlab.com>2019-04-02 13:32:00 +1100
commit04d91f949ecd3dcf0179762b20276d1461dd8494 (patch)
tree1945a2def4038f2a65ab2f67bb0392c099c089d0
parent3be46bdf086c4b11ec8c5eccae8d1c345127f2fc (diff)
downloadgitlab-ce-04d91f949ecd3dcf0179762b20276d1461dd8494.tar.gz
Add docs for including individual Auto-DevOps jobs
-rw-r--r--changelogs/unreleased/47234-composable-auto-devops.yml5
-rw-r--r--doc/topics/autodevops/index.md15
2 files changed, 20 insertions, 0 deletions
diff --git a/changelogs/unreleased/47234-composable-auto-devops.yml b/changelogs/unreleased/47234-composable-auto-devops.yml
new file mode 100644
index 00000000000..9403c5ae6d3
--- /dev/null
+++ b/changelogs/unreleased/47234-composable-auto-devops.yml
@@ -0,0 +1,5 @@
+---
+title: Split Auto-DevOps.gitlab-ci.yml into reusable templates
+merge_request: 26520
+author:
+type: changed
diff --git a/doc/topics/autodevops/index.md b/doc/topics/autodevops/index.md
index b9e3e6aea69..dabf1c5f799 100644
--- a/doc/topics/autodevops/index.md
+++ b/doc/topics/autodevops/index.md
@@ -677,6 +677,21 @@ renaming `.staging` to `staging`. Then make sure to uncomment the `when` key of
the `production` job to turn it into a manual action instead of deploying
automatically.
+### Using components of Auto-DevOps
+
+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`.
+
+For example, to make use of [Auto Build](#auto-build), you can add the following to
+your `.gitlab-ci.yml`:
+
+```yaml
+include:
+ - template: Jobs/Build.gitlab-ci.yml
+```
+
+Consult the [Auto DevOps template] for information on available jobs.
+
### PostgreSQL database support
In order to support applications that require a database,