File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARG BASE_IMAGE=ubi10
2+
13FROM --platform=${BUILDPLATFORM} golang:1.25 AS go_builder
24WORKDIR /go/src/github.com/percona/percona-postgresql-operator
35
@@ -45,7 +47,7 @@ RUN mkdir -p build/_output/bin \
4547RUN ./bin/license_aggregator.sh ./cmd/...; \
4648 cp -r ./licenses /licenses
4749
48- FROM registry.access.redhat.com/ubi10 /ubi-minimal AS ubi10
50+ FROM registry.access.redhat.com/${BASE_IMAGE} /ubi-minimal AS ubi
4951RUN microdnf update -y && microdnf clean all -y
5052
5153LABEL name="Percona Postgres Operator" \
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ build_operator() {
5050 --build-arg GIT_BRANCH=" ${GIT_BRANCH} " \
5151 --build-arg BUILD_TIME=" ${BUILD_TIME} " \
5252 --build-arg GO_LDFLAGS=" ${GO_LDFLAGS} " \
53+ --build-arg BASE_IMAGE=" ${BASE_IMAGE:- ubi10} " \
5354 --progress plain \
5455 $imgresult \
5556 $squash \
You can’t perform that action at this time.
0 commit comments