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 24
24
- name : revision
25
25
value : ' {{revision}}'
26
26
- 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}}
28
28
- name : image-expires-after
29
29
value : 5d
30
30
- name : build-platforms
Original file line number Diff line number Diff line change 23
23
- name : revision
24
24
value : ' {{revision}}'
25
25
- 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}}
27
27
- name : build-platforms
28
28
value :
29
29
- linux/x86_64
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.24 AS builder
4
+ FROM --platform=$BUILDPLATFORM quay.io/projectquay/golang:1.24 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 && \
@@ -47,4 +47,3 @@ RUN chmod +x "$OPBIN"
47
47
EXPOSE 9464
48
48
ENTRYPOINT ["/usr/local/bin/snmp_notifier" ]
49
49
CMD ["--snmp.trap-description-template=/etc/snmp_notifier/description-template.tpl" ]
50
-
You can’t perform that action at this time.
0 commit comments