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>
This commit is contained in:
Madhu Rajanna 2022-05-09 10:09:05 +05:30 committed by mergify[bot]
parent b4ff3884f1
commit df047ddaaf

View File

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