File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 30
30
- name : build-platforms
31
31
value :
32
32
- linux/x86_64
33
+ - linux/arm64
34
+ - linux/s390x
35
+ - linux/ppc64le
33
36
- name : dockerfile
34
37
value : Dockerfile
35
38
- name : path-context
Original file line number Diff line number Diff line change 27
27
- name : build-platforms
28
28
value :
29
29
- linux/x86_64
30
+ - linux/arm64
31
+ - linux/s390x
32
+ - linux/ppc64le
30
33
- name : dockerfile
31
34
value : Dockerfile
32
35
- name : path-context
Original file line number Diff line number Diff line change 1
1
# Build stage 1
2
2
3
3
# FROM openshift/golang-builder:rhel_9_golang_1.23 AS builder
4
- FROM quay.io/projectquay/golang:1.23 AS builder
4
+ FROM --platform=$BUILDPLATFORM quay.io/projectquay/golang:1.23 AS builder
5
5
6
6
COPY snmp_notifier snmp_notifier
7
7
@@ -22,7 +22,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -mod=readonly \
22
22
-a -tags netgo
23
23
24
24
# Build stage 2
25
- FROM registry.redhat.io /ubi9/ubi -minimal
25
+ FROM --platform=$BUILDPLATFORM registry.access. redhat.com /ubi9-minimal:latest
26
26
27
27
# Update the image to get the latest CVE updates
28
28
RUN microdnf update -y && \
@@ -46,5 +46,4 @@ RUN chmod +x "$OPBIN"
46
46
47
47
EXPOSE 9464
48
48
ENTRYPOINT ["/usr/local/bin/snmp_notifier" ]
49
- CMD ["--snmp.trap-description-template=/etc/snmp_notifier/description-template.tpl" ]
50
-
49
+ CMD ["--snmp.trap-description-template=/etc/snmp_notifier/description-template.tpl" ]
You can’t perform that action at this time.
0 commit comments