Skip to content

Commit a8beef9

Browse files
Update git-init.Dockerfile
1 parent a2b1387 commit a8beef9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.konflux/dockerfiles/git-init.Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22
2-
ARG RUNTIME=registry.redhat.io/ubi8/ubi:latest@sha256:8bd1b6306f8164de7fb0974031a0f903bd3ab3e6bcab835854d3d9a1a74ea5db
1+
ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23
2+
ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:e1c4703364c5cb58f5462575dc90345bcd934ddc45e6c32f9c162f2b5617681c
33

44
FROM $GO_BUILDER AS builder
55

@@ -9,16 +9,16 @@ COPY .konflux/patches patches/
99
RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; git apply ${f}; done
1010
COPY head HEAD
1111
ENV GODEBUG="http2server=0"
12-
RUN cd image/git-init && go build -ldflags="-X 'knative.dev/pkg/changeset.rev=${CHANGESET_REV:0:7}'" -mod=vendor -v -o /tmp/tektoncd-catalog-git-clone
12+
RUN cd image/git-init && go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat HEAD)'" -mod=vendor -v -o /tmp/tektoncd-catalog-git-clone
1313

1414
FROM $RUNTIME
15-
ARG VERSION=git-init-1.14.6
15+
ARG VERSION=git-init-next
1616

1717
ENV BINARY=git-init \
1818
KO_APP=/ko-app \
1919
KO_DATA_PATH=/kodata
2020

21-
RUN dnf install -y openssh-clients git git-lfs shadow-utils
21+
RUN microdnf install -y openssh-clients git git-lfs shadow-utils
2222

2323
COPY --from=builder /tmp/tektoncd-catalog-git-clone ${KO_APP}/${BINARY}
2424
COPY head ${KO_DATA_PATH}/HEAD

0 commit comments

Comments
 (0)