From 2a11149034fb55b91bd027d5f74388dcf4f99611 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 4 Dec 2019 22:01:01 -0800 Subject: [PATCH] .gitlab-ci.yml: remove dco --- .gitlab-ci.yml | 12 ------------ scripts/check-dco | 12 ------------ 2 files changed, 24 deletions(-) delete mode 100755 scripts/check-dco diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5fa632c..c0ff706 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,4 @@ stages: - - check-dco - go-fmt - go-test - build-src @@ -8,17 +7,6 @@ stages: - docker-registry-master - docker-registry-tags -check-dco: - stage: check-dco - image: debian:buster - except: - - master - - tags - script: - - apt update - - apt install -y curl git jq - - bash ./scripts/check-dco - build-src: stage: build-src image: debian:buster diff --git a/scripts/check-dco b/scripts/check-dco deleted file mode 100755 index 7c5db72..0000000 --- a/scripts/check-dco +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -emails=$(git log master..HEAD --pretty=format:'%ae' | sort | uniq) -for email in $emails; do - printf "checking %s\n" "$email" - if ! curl -s 'https://dco.commento.io/api/has-signed' -d "email=$email" -X POST \ - | jq '.hasSigned' \ - | grep -q true; then - printf "%s has not signed the DCO: https://dco.commento.io\n" "$email" - exit 1 - fi -done