[all PATCH v2] gitlab: add CI job for validating DCO signoff
Daniel P. Berrangé
berrange at redhat.com
Wed Apr 22 17:31:14 UTC 2020
This job uses the shared "check-dco" image to validate that all
commits on a branch in a developer's repo fork have a suitable
Signed-off-by statement present.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
This patch was against the Perl repo, but if this is approved then
I'll also apply it to *all* the other repos which currently lack a
DCO check, without reposting further patches for each repo.
For libvirt.git I'll send a patch to update its existing DCO job.
Changed in v2:
- Exclude based on project namespace, not branch names
.gitlab-ci.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 .gitlab-ci.yml
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
@@ -0,0 +1,16 @@
+ - prebuild
+# Check that all commits are signed-off for the DCO.
+# Skip on "libvirt" namespace, since we only need to run
+# this test on developer's personal forks from which
+# merge requests are submitted
+ stage: prebuild
+ image: registry.gitlab.com/libvirt/libvirt-ci/check-dco:master
+ - /check-dco
+ - $CI_PROJECT_NAMESPACE == 'libvirt'
More information about the libvir-list