Skip to content

Commit 6279a33

Browse files
Sachin-Yeshwanthandrewschoen
authored andcommitted
setup snmp-notifier 6.1 container in konflux
1 parent b73efbe commit 6279a33

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.tekton/snmp-notifier-6-1-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
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

.tekton/snmp-notifier-6-1-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
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

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
COPY 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
2828
RUN microdnf update -y && \
@@ -47,4 +47,3 @@ RUN chmod +x "$OPBIN"
4747
EXPOSE 9464
4848
ENTRYPOINT ["/usr/local/bin/snmp_notifier"]
4949
CMD ["--snmp.trap-description-template=/etc/snmp_notifier/description-template.tpl"]
50-

0 commit comments

Comments
 (0)