File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed
Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,24 @@ jobs:
116116 with :
117117 severity : error
118118
119+ hadolint :
120+ name : hadolint
121+ runs-on : ubuntu-24.04
122+ steps :
123+ - name : checkout PR
124+ uses : actions/checkout@v5
125+ - name : run hadolint on operator dockerfile
126+ 127+ with :
128+ dockerfile : Dockerfile
129+ - name : run hadolint on config daemon dockerfile
130+ 131+ with :
132+ dockerfile : Dockerfile.sriov-network-config-daemon
133+ - name : run hadolint on webhook dockerfile
134+ 135+ with :
136+ dockerfile : Dockerfile.webhook
119137 test-coverage :
120138 name : test-coverage
121139 runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change 11FROM golang:1.25 AS builder
22WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
33COPY . .
4- RUN make _build-manager BIN_PATH=build/_output/cmd
5- RUN make _build-sriov-network-operator-config-cleanup BIN_PATH=build/_output/cmd
4+ RUN make _build-manager BIN_PATH=build/_output/cmd && \
5+ make _build-sriov-network-operator-config-cleanup BIN_PATH=build/_output/cmd
66
77FROM quay.io/centos/centos:stream9
88COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/build/_output/cmd/manager /usr/bin/sriov-network-operator
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ COPY . .
44RUN make _build-sriov-network-config-daemon BIN_PATH=build/_output/cmd
55
66FROM quay.io/centos/centos:stream9
7- ARG MSTFLINT=mstflint
7+ ARG MSTFLINT=mstflint-4.32.0
88# We have to ensure that pciutils is installed. This package is needed for mstfwreset to succeed.
99# xref pkg/vendors/mellanox/mellanox.go#L150
10- RUN ARCH_DEP_PKGS=$(if [ "$(uname -m)" != "s390x" ]; then echo -n ${MSTFLINT} ; fi) && yum -y install hwdata pciutils $ ARCH_DEP_PKGS && yum clean all
10+ RUN ARCH_DEP_PKGS=$(if [ "$(uname -m)" != "s390x" ]; then echo -n " ${MSTFLINT}" ; fi) && yum -y install hwdata pciutils "${ ARCH_DEP_PKGS}" && yum clean all
1111LABEL io.k8s.display-name="sriov-network-config-daemon" \
1212 io.k8s.description="This is a daemon that manage and config sriov network devices in Kubernetes cluster"
1313COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/build/_output/cmd/sriov-network-config-daemon /usr/bin/
You can’t perform that action at this time.
0 commit comments