Skip to content

Commit d39b13a

Browse files
author
Ashok Guntupalli
committed
update base image registry
1 parent 1f83a17 commit d39b13a

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.tekton/managed-cluster-validating-webhooks-pull-request.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spec:
3131
value: build/Dockerfile
3232
- name: path-context
3333
value: .
34+
- name: build-args
35+
value:
36+
- BASE_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24
37+
3438
pipelineSpec:
3539
description: |
3640
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
@@ -101,10 +105,11 @@ spec:
101105
description: Add built image into an OCI image index
102106
name: build-image-index
103107
type: string
104-
- default: []
108+
- default:
109+
- BASE_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24
105110
description: Array of --build-arg values ("arg=value" strings) for buildah
106111
name: build-args
107-
type: array
112+
type: array
108113
- default: ""
109114
description: Path to a file with build arguments for buildah, see https://www.mankier.com/1/buildah-build#--build-arg-file
110115
name: build-args-file

.tekton/managed-cluster-validating-webhooks-push.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ spec:
2828
value: build/Dockerfile
2929
- name: path-context
3030
value: .
31+
- name: build-args
32+
value:
33+
- BASE_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24
3134
pipelineSpec:
3235
description: |
3336
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
@@ -98,7 +101,8 @@ spec:
98101
description: Add built image into an OCI image index
99102
name: build-image-index
100103
type: string
101-
- default: []
104+
- default:
105+
- BASE_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24
102106
description: Array of --build-arg values ("arg=value" strings) for buildah
103107
name: build-args
104108
type: array

build/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM registry.ci.openshift.org/openshift/release:golang-1.23 AS builder
1+
ARG BASE_IMAGE=registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.23-openshift-4.19
2+
FROM ${BASE_IMAGE} AS builder
23

34
RUN mkdir -p /workdir
45
WORKDIR /workdir

0 commit comments

Comments
 (0)