diff --git a/documentation/chapters/templates/common/workflow-gitflow.adoc b/documentation/chapters/templates/common/workflow-gitflow.adoc new file mode 100644 index 0000000..d886300 --- /dev/null +++ b/documentation/chapters/templates/common/workflow-gitflow.adoc @@ -0,0 +1,11 @@ +:gitlab-ci-file: common/workflow-gitflow.gitlab-ci.yml + +[[Common-Workflow]] +== Common Workflow + +Within the `{gitlab-ci-file}` file we provide our common workflow, the https://docs.gitlab.com/ee/ci/yaml/workflow.html#git-flow-with-merge-request-pipelines[Git Flow with merge request workflow]. +This workflow runs pipelines for merge requests, tags, and protected branches. +To use our common workflow, just import the template. + +:template: {gitlab-ci-file} +include::../../../template-printer.adoc[] \ No newline at end of file diff --git a/documentation/document.adoc b/documentation/document.adoc index d050990..a7e4f17 100644 --- a/documentation/document.adoc +++ b/documentation/document.adoc @@ -35,6 +35,7 @@ toc::[] include::generalInformation.adoc[leveloffset=1] include::chapters/templates/common/common-ci-variablen.adoc[leveloffset=1] +include::chapters/templates/common/workflow-gitflow.adoc[leveloffset=1] == Contribution diff --git a/templates/common/workflow-gitflow.gitlab-ci.yml b/templates/common/workflow-gitflow.gitlab-ci.yml new file mode 100644 index 0000000..e3facdb --- /dev/null +++ b/templates/common/workflow-gitflow.gitlab-ci.yml @@ -0,0 +1,5 @@ +workflow: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_REF_PROTECTED