mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 08:40:23 +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>
(cherry picked from commit df047ddaaf
)
This commit is contained in:
parent
179996990e
commit
06182eae6e
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user