Skip to content

Commit b28fcd0

Browse files
Sachin-Yeshwanthandrewschoen
authored andcommitted
7.1: Fixed the Indentation in push.yaml file and updated Dockerfile
1 parent 342a03f commit b28fcd0

File tree

4 files changed

+11477
-359
lines changed

4 files changed

+11477
-359
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ spec:
206206
workspace: git-auth
207207
- name: netrc
208208
workspace: netrc
209-
- matrix:
209+
- matrix:
210210
params:
211211
- name: PLATFORM
212212
value:
@@ -341,7 +341,7 @@ spec:
341341
operator: in
342342
values:
343343
- "false"
344-
- matrix:
344+
- matrix:
345345
params:
346346
- name: image-platform
347347
value:
@@ -388,7 +388,7 @@ spec:
388388
operator: in
389389
values:
390390
- "false"
391-
- matrix:
391+
matrix:
392392
params:
393393
- name: platform
394394
value:
@@ -441,7 +441,7 @@ spec:
441441
operator: in
442442
values:
443443
- "false"
444-
- matrix:
444+
matrix:
445445
params:
446446
- name: image-arch
447447
value:
@@ -572,8 +572,8 @@ spec:
572572
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
573573
- name: ADDITIONAL_TAGS
574574
value:
575-
- "v7.1"
576-
- "{{target_branch}}-$(tasks.clone-repository.results.commit-timestamp)"
575+
- "v7.1"
576+
- "{{target_branch}}-$(tasks.clone-repository.results.commit-timestamp)"
577577
runAfter:
578578
- build-image-index
579579
taskRef:

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ COPY snmp_notifier snmp_notifier
77

88
WORKDIR snmp_notifier
99

10-
# The base image has glibc-langpack-en which causes issues with glibc-static installation.
11-
# So removing it will resolve the issue in the hermetic build
12-
RUN dnf remove -y glibc-langpack-en \
13-
&& dnf install -y glibc glibc-devel glibc-static
10+
RUN dnf install -y glibc-static
1411

1512
# Build the binary
1613
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -mod=readonly \

rpms.in.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ arches:
1010
- ppc64le
1111
- s390x
1212

13+
context:
14+
containerfile:
15+
file: Dockerfile
16+
stageName: builder
17+
1318
packages:
1419
- glibc-static
1520

16-
allowerasing: true
21+
reinstallPackages:
22+
- '*'

0 commit comments

Comments
 (0)