Skip to content
Snippets Groups Projects
Commit 41b1923d authored by Dan Williams's avatar Dan Williams
Browse files

ci: only run DCO check on merge requests


Signed-off-by: default avatarDan Williams <dan@ioncontrol.co>
parent cd1ba1c0
No related branches found
No related tags found
1 merge request!1298ci: only run DCO check on merge requests
Pipeline #1372762 passed
......@@ -31,16 +31,15 @@ verify-dco:
- .fdo.distribution-image@ubuntu
- .common_variables
only:
- main
- merge_requests
- tags
- schedules
script: |
export COMMITS=$(git log --no-merges --format="%H" ${CI_MERGE_REQUEST_DIFF_BASE_SHA}.. | xargs)
for c in "${COMMITS}"; do
echo "Checking commit ${c} for DCO Signed-off-by"
git log --format="%b" -1 ${c} | grep "Signed-off-by: .* <.*@.*>"
done
if [[ -n "${CI_MERGE_REQUEST_DIFF_BASE_SHA}" ]]; then
export COMMITS=$(git log --no-merges --format="%H" ${CI_MERGE_REQUEST_DIFF_BASE_SHA}.. | xargs)
for c in "${COMMITS}"; do
echo "Checking commit ${c} for DCO Signed-off-by"
git log --format="%b" -1 ${c} | grep "Signed-off-by: .* <.*@.*>"
done
fi
build container:
extends:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment