From 04d91f949ecd3dcf0179762b20276d1461dd8494 Mon Sep 17 00:00:00 2001 From: Tiger Date: Mon, 1 Apr 2019 15:59:29 +1100 Subject: [PATCH] Add docs for including individual Auto-DevOps jobs --- .../unreleased/47234-composable-auto-devops.yml | 5 +++++ doc/topics/autodevops/index.md | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 changelogs/unreleased/47234-composable-auto-devops.yml 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,