File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ test_steps = [
35
35
try {
36
36
checkout scm
37
37
sh " make REF=$branch checkout"
38
- sh " make -C rpm centos-7 centos-8 fedora-34 "
38
+ sh " make -C rpm centos-7 centos-8 fedora-35 "
39
39
} finally {
40
40
sh " make clean"
41
41
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ RUN?=docker run --rm \
50
50
$(RUN_FLAGS ) \
51
51
rpmbuild-$@ /$(ARCH ) $(RPMBUILD_FLAGS )
52
52
53
- FEDORA_RELEASES ?= fedora-34 fedora-33
53
+ FEDORA_RELEASES ?= fedora-35 fedora- 34 fedora-33
54
54
CENTOS_RELEASES ?= centos-7 centos-8
55
55
ifeq ($(ARCH ) ,s390x)
56
56
RHEL_RELEASES ?= rhel-7
Original file line number Diff line number Diff line change
1
+ ARG GO_IMAGE
2
+ ARG DISTRO=fedora
3
+ ARG SUITE=35
4
+ ARG BUILD_IMAGE=${DISTRO}:${SUITE}
5
+
6
+ FROM ${GO_IMAGE} AS golang
7
+
8
+ FROM ${BUILD_IMAGE}
9
+ ENV GOPROXY=direct
10
+ ENV GO111MODULE=off
11
+ ENV GOPATH /go
12
+ ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
13
+ ENV AUTO_GOPATH 1
14
+ ENV DOCKER_BUILDTAGS seccomp selinux
15
+ ENV RUNC_BUILDTAGS seccomp selinux
16
+ ARG DISTRO
17
+ ARG SUITE
18
+ ENV DISTRO=${DISTRO}
19
+ ENV SUITE=${SUITE}
20
+ RUN dnf install -y rpm-build rpmlint dnf-plugins-core
21
+ COPY SPECS /root/rpmbuild/SPECS
22
+
23
+ # TODO change once we support scan-plugin on other architectures
24
+ RUN \
25
+ if [ "$(uname -m)" = "x86_64" ]; then \
26
+ dnf builddep -y /root/rpmbuild/SPECS/*.spec; \
27
+ else \
28
+ dnf builddep -y /root/rpmbuild/SPECS/docker-c*.spec; \
29
+ fi
30
+
31
+ COPY --from=golang /usr/local/go /usr/local/go
32
+ WORKDIR /root/rpmbuild
33
+ ENTRYPOINT ["/bin/rpmbuild" ]
You can’t perform that action at this time.
0 commit comments