mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
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:
parent
b4ff3884f1
commit
df047ddaaf
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user