build: install specific commitlint version

commitlint 13.1.0 is causing issues when
PR is backported from devel branch to release
branch
https://github.com/ceph/ceph-csi/pull/2332#issuecomment-888325775
Lets revert back to commitlint 12.1.4 where we have
not seen any issue with backports to release
branch.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2021-07-29 16:17:52 +05:30 committed by mergify[bot]
parent d3beaeb014
commit fe947eccce
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,9 @@ CEPH_VERSION=octopus
GOLANG_VERSION=1.16.4
GO111MODULE=on
# commitlint version
COMMITLINT_VERSION=12.1.4
# static checks and linters
GOLANGCI_VERSION=v1.39.0
GOSEC_VERSION=v2.7.0

View File

@ -44,7 +44,7 @@ RUN source /build.env \
&& curl -L https://git.io/get_helm.sh | bash -s -- --version "${HELM_VERSION}" \
&& mkdir /opt/commitlint && pushd /opt/commitlint \
&& npm init -y \
&& npm install @commitlint/cli \
&& npm install @commitlint/cli@"${COMMITLINT_VERSION}" \
&& popd \
&& true