Skip to content
Snippets Groups Projects
Commit 953f9d00 authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

.gitlab-ci.yml: use upstream container for dco-check


Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent db58a3cd
No related branches found
No related tags found
No related merge requests found
......@@ -9,13 +9,28 @@ stages:
- integration
include:
- project: distro/oniro
file:
- .oniro-ci/dco.yaml
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
dco:
extends: .dco
interruptible: true
stage: compliance
image: christophebedard/dco-check:latest
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_EXTERNAL_PULL_REQUEST_IID
- if: $CI_COMMIT_BRANCH == '$CI_DEFAULT_BRANCH'
script:
# Work around a bug in dco-check affecting pipelines for merge requests.
# https://github.com/christophebedard/dco-check/issues/104
- |
if [ "${CI_MERGE_REQUEST_EVENT_TYPE:-}" = detached ]; then
git fetch -a # so that we can resolve branch names below
export CI_COMMIT_BRANCH="$CI_COMMIT_REF_NAME";
export CI_COMMIT_BEFORE_SHA="$CI_MERGE_REQUEST_DIFF_BASE_SHA";
export CI_MERGE_REQUEST_SOURCE_BRANCH_SHA="$(git rev-parse "origin/$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME")";
export CI_MERGE_REQUEST_TARGET_BRANCH_SHA="$(git rev-parse "origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME")";
fi
- dco-check --default-branch-from-remote --verbose
reuse:
interruptible: true
......
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