ci: fix commitlint problem

Still seeing the issue of the commitlint
as below

fatal: unsafe repository
('/go/src/github.com/ceph/ceph-csi'
is owned by someone else)
To add an exception for this directory,
call:

git config --global --add safe.directory \
/go/src/github.com/ceph/ceph-csi
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit df047ddaaf)
This commit is contained in:
Madhu Rajanna 2022-05-09 10:09:05 +05:30 committed by mergify[bot]
parent 179996990e
commit 06182eae6e

View File

@ -18,6 +18,7 @@ ENV \
GOPATH=${GOPATH} \ GOPATH=${GOPATH} \
GOROOT=${GOROOT} \ GOROOT=${GOROOT} \
GO111MODULE=on \ GO111MODULE=on \
CEPHCSIPATH=/go/src/github.com/ceph/ceph-csi \
PATH="${GOPATH}/bin:${GOROOT}/bin:/opt/commitlint/node_modules/.bin:${PATH}" PATH="${GOPATH}/bin:${GOROOT}/bin:/opt/commitlint/node_modules/.bin:${PATH}"
COPY build.env / COPY build.env /
@ -53,6 +54,7 @@ RUN source /build.env \
&& npm init -y \ && npm init -y \
&& npm install @commitlint/cli@"${COMMITLINT_VERSION}" \ && npm install @commitlint/cli@"${COMMITLINT_VERSION}" \
&& popd \ && popd \
&& git config --global --add safe.directory ${CEPHCSIPATH} \
&& true && true
WORKDIR /go/src/github.com/ceph/ceph-csi WORKDIR ${CEPHCSIPATH}