File tree 3 files changed +50
-1
lines changed
3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,19 @@ test_steps = [
16
16
}
17
17
}
18
18
},
19
+ ' raspbian' : { ->
20
+ stage(' Raspbian' ) {
21
+ wrappedNode(label : ' ubuntu && armhf' , cleanWorkspace : true ) {
22
+ try {
23
+ checkout scm
24
+ sh " make REF=$branch checkout"
25
+ sh " make -C deb raspbian-buster raspbian-bullseye"
26
+ } finally {
27
+ sh " make clean"
28
+ }
29
+ }
30
+ }
31
+ },
19
32
' rpm' : { ->
20
33
stage(' Centos 7 and 8 RPM Packages' ) {
21
34
wrappedNode(label : ' ubuntu && x86_64' , cleanWorkspace : true ) {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ RUN?=docker run --rm \
38
38
39
39
DEBIAN_VERSIONS ?= debian-buster debian-bullseye
40
40
UBUNTU_VERSIONS ?= ubuntu-xenial ubuntu-bionic ubuntu-focal ubuntu-groovy
41
- RASPBIAN_VERSIONS ?= raspbian-buster
41
+ RASPBIAN_VERSIONS ?= raspbian-buster raspbian-bullseye
42
42
DISTROS := $(DEBIAN_VERSIONS ) $(UBUNTU_VERSIONS ) $(RASPBIAN_VERSIONS )
43
43
44
44
.PHONY : help
Original file line number Diff line number Diff line change
1
+ ARG GO_IMAGE
2
+ ARG DISTRO=raspbian
3
+ ARG SUITE=bullseye
4
+ ARG BUILD_IMAGE=balenalib/rpi-raspbian:${SUITE}
5
+
6
+ FROM ${GO_IMAGE} AS golang
7
+
8
+ FROM ${BUILD_IMAGE}
9
+
10
+ ARG DEBIAN_FRONTEND=noninteractive
11
+ RUN apt-get update && apt-get install -y curl devscripts equivs git
12
+
13
+ ENV GOPROXY=direct
14
+ ENV GO111MODULE=off
15
+ ENV GOPATH /go
16
+ ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
17
+ ENV DOCKER_BUILDTAGS apparmor seccomp selinux
18
+ ENV RUNC_BUILDTAGS apparmor seccomp selinux
19
+
20
+ ARG COMMON_FILES
21
+ COPY ${COMMON_FILES} /root/build-deb/debian
22
+ RUN apt-get update \
23
+ && mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control
24
+
25
+ COPY sources/ /sources
26
+ ARG DISTRO
27
+ ARG SUITE
28
+ ENV DISTRO=${DISTRO}
29
+ ENV SUITE=${SUITE}
30
+
31
+ COPY --from=golang /usr/local/go /usr/local/go
32
+
33
+ WORKDIR /root/build-deb
34
+ COPY build-deb /root/build-deb/build-deb
35
+
36
+ ENTRYPOINT ["/root/build-deb/build-deb" ]
You can’t perform that action at this time.
0 commit comments