mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +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 \
|
ENV \
|
||||||
GOPATH=${GOPATH} \
|
GOPATH=${GOPATH} \
|
||||||
GO111MODULE=on \
|
GO111MODULE=on \
|
||||||
PATH="${GOPATH}/bin:${PATH}"
|
PATH="${GOPATH}/bin:/opt/commitlint/node_modules/.bin:${PATH}"
|
||||||
|
|
||||||
|
|
||||||
RUN dnf -y install \
|
RUN dnf -y install \
|
||||||
git \
|
git \
|
||||||
@ -30,6 +29,7 @@ RUN dnf -y install \
|
|||||||
rubygems \
|
rubygems \
|
||||||
ShellCheck \
|
ShellCheck \
|
||||||
yamllint \
|
yamllint \
|
||||||
|
npm \
|
||||||
&& dnf -y update \
|
&& dnf -y update \
|
||||||
&& dnf -y clean all \
|
&& dnf -y clean all \
|
||||||
&& gem install mdl \
|
&& gem install mdl \
|
||||||
@ -38,6 +38,10 @@ RUN dnf -y install \
|
|||||||
&& curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh" \
|
&& curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh" \
|
||||||
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}" \
|
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}" \
|
||||||
&& curl -L https://git.io/get_helm.sh | bash \
|
&& curl -L https://git.io/get_helm.sh | bash \
|
||||||
|
&& mkdir /opt/commitlint && pushd /opt/commitlint \
|
||||||
|
&& npm init -y \
|
||||||
|
&& npm install @commitlint/cli \
|
||||||
|
&& popd \
|
||||||
&& true
|
&& true
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/ceph/ceph-csi
|
WORKDIR /go/src/github.com/ceph/ceph-csi
|
||||||
|
Loading…
Reference in New Issue
Block a user