.gitlab-ci.yml: remove dco
This commit is contained in:
parent
918a691ba3
commit
2a11149034
@ -1,5 +1,4 @@
|
|||||||
stages:
|
stages:
|
||||||
- check-dco
|
|
||||||
- go-fmt
|
- go-fmt
|
||||||
- go-test
|
- go-test
|
||||||
- build-src
|
- build-src
|
||||||
@ -8,17 +7,6 @@ stages:
|
|||||||
- docker-registry-master
|
- docker-registry-master
|
||||||
- docker-registry-tags
|
- 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:
|
build-src:
|
||||||
stage: build-src
|
stage: build-src
|
||||||
image: debian:buster
|
image: debian:buster
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user