mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
ci: install commitlint in the test container-image
The `commitlint` command can be used to verify the subject of commit messages, so it is added to the $PATH. See-also: https://commitlint.js.org Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
ead02ea8e6
commit
aeb5c75da7
@ -17,8 +17,7 @@ ARG GOPATH=/go
|
||||
ENV \
|
||||
GOPATH=${GOPATH} \
|
||||
GO111MODULE=on \
|
||||
PATH="${GOPATH}/bin:${PATH}"
|
||||
|
||||
PATH="${GOPATH}/bin:/opt/commitlint/node_modules/.bin:${PATH}"
|
||||
|
||||
RUN dnf -y install \
|
||||
git \
|
||||
@ -30,6 +29,7 @@ RUN dnf -y install \
|
||||
rubygems \
|
||||
ShellCheck \
|
||||
yamllint \
|
||||
npm \
|
||||
&& dnf -y update \
|
||||
&& dnf -y clean all \
|
||||
&& gem install mdl \
|
||||
@ -38,6 +38,10 @@ RUN dnf -y install \
|
||||
&& curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh" \
|
||||
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}" \
|
||||
&& curl -L https://git.io/get_helm.sh | bash \
|
||||
&& mkdir /opt/commitlint && pushd /opt/commitlint \
|
||||
&& npm init -y \
|
||||
&& npm install @commitlint/cli \
|
||||
&& popd \
|
||||
&& true
|
||||
|
||||
WORKDIR /go/src/github.com/ceph/ceph-csi
|
||||
|
Loading…
Reference in New Issue
Block a user