You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .konflux/dockerfiles/git-init.Dockerfile
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; g
10
10
COPY head HEAD
11
11
ENV GODEBUG="http2server=0"
12
12
ENV GOEXPERIMENT=strictfipsruntime
13
-
RUN cd image/git-init && go build -ldflags="-X 'knative.dev/pkg/changeset.rev=${CHANGESET_REV:0:7}'" -mod=vendor -tags strictfipsruntime -v -o /tmp/tektoncd-catalog-git-clone
13
+
RUN cd image/git-init && go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat HEAD)'" -mod=vendor -tags strictfipsruntime -v -o /tmp/tektoncd-catalog-git-clone
14
14
15
15
FROM $RUNTIME
16
16
ARG VERSION=git-init-1.17.2
@@ -19,8 +19,12 @@ ENV BINARY=git-init \
19
19
KO_APP=/ko-app \
20
20
KO_DATA_PATH=/kodata
21
21
22
+
RUN dnf install -y openssh-clients git git-lfs shadow-utils
0 commit comments