Skip to content

Commit 4359e53

Browse files
Sachin-Yeshwanthandrewschoen
authored andcommitted
snmp-notifier: testing RHEL10 UBI image
1 parent 136e991 commit 4359e53

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ spec:
294294
- name: build-source-image
295295
params:
296296
- name: BINARY_IMAGE
297-
value: $(params.output-image)
297+
value: $(tasks.build-image-index.results.IMAGE_URL)
298+
- name: BINARY_IMAGE_DIGEST
299+
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
298300
- name: SOURCE_ARTIFACT
299301
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
300302
- name: CACHI2_ARTIFACT
@@ -617,9 +619,9 @@ spec:
617619
- name: netrc
618620
optional: true
619621
taskRunTemplate:
620-
serviceAccountName: build-pipeline-snmp-notifier
622+
serviceAccountName: build-pipeline-snmp-notifier-9-0
621623
workspaces:
622624
- name: git-auth
623625
secret:
624626
secretName: '{{ git_auth_secret }}'
625-
status: {}
627+
status: {}

Dockerfile

Lines changed: 3 additions & 4 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.23 AS builder
4+
FROM --platform=$BUILDPLATFORM quay.io/projectquay/golang:1.23 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/ubi10-minimal:latest
2626

2727
# Update the image to get the latest CVE updates
2828
RUN microdnf update -y && \
@@ -46,5 +46,4 @@ RUN chmod +x "$OPBIN"
4646

4747
EXPOSE 9464
4848
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"]

0 commit comments

Comments
 (0)