We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de2c9e4 commit 940d8f6Copy full SHA for 940d8f6
Dockerfile
@@ -8,8 +8,14 @@ COPY . .
8
# Build
9
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
10
11
+# Extract the commit reference from which the image is built
12
+RUN git rev-parse --short HEAD > /commit-reference.txt
13
+
14
FROM quay-proxy.ci.openshift.org/openshift/ci:ocp_4.16_base-rhel9
15
16
+# Copy the commit reference from the builder
17
+COPY --from=builder /commit-reference.txt /commit-reference.txt
18
19
WORKDIR /
20
COPY --from=builder /workspace/manager .
21
USER 65532:65532
0 commit comments