File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 2424 - name : revision
2525 value : ' {{revision}}'
2626 - name : output-image
27- value : quay.io/rhceph-dev /snmp-notifier:on-pr-v6.1-{{revision}}
27+ value : quay.io/rhceph-ci /snmp-notifier:on-pr-v6.1-{{revision}}
2828 - name : image-expires-after
2929 value : 5d
3030 - name : build-platforms
Original file line number Diff line number Diff line change 2323 - name : revision
2424 value : ' {{revision}}'
2525 - name : output-image
26- value : quay.io/rhceph-dev /snmp-notifier:v6.1-{{revision}}
26+ value : quay.io/rhceph-ci /snmp-notifier:v6.1-{{revision}}
2727 - name : build-platforms
2828 value :
2929 - linux/x86_64
Original file line number Diff line number Diff line change 11# Build stage 1
22
33# FROM openshift/golang-builder:rhel_9_golang_1.23 AS builder
4- FROM quay.io/projectquay/golang:1.24 AS builder
4+ FROM --platform=$BUILDPLATFORM quay.io/projectquay/golang:1.24 AS builder
55
66COPY snmp_notifier snmp_notifier
77
@@ -22,7 +22,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -mod=readonly \
2222 -a -tags netgo
2323
2424# Build stage 2
25- FROM registry.redhat.io /ubi9/ubi -minimal
25+ FROM --platform=$BUILDPLATFORM registry.access. redhat.com /ubi9-minimal:latest
2626
2727# Update the image to get the latest CVE updates
2828RUN microdnf update -y && \
@@ -47,4 +47,3 @@ RUN chmod +x "$OPBIN"
4747EXPOSE 9464
4848ENTRYPOINT ["/usr/local/bin/snmp_notifier" ]
4949CMD ["--snmp.trap-description-template=/etc/snmp_notifier/description-template.tpl" ]
50-
You can’t perform that action at this time.
0 commit comments