Skip to content

Commit cba3e69

Browse files
Set GIT_COMMIT env from SOURCE_GIT_COMMIT in Dockerfiles for operator-controller and catalogd
Signed-off-by: Rashmi Gottipati <[email protected]>
1 parent edf14af commit cba3e69

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

openshift/catalogd.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
2+
3+
ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
4+
25
WORKDIR /build
36
COPY . .
47
RUN make go-build-local

openshift/operator-controller.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
2+
3+
ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
4+
25
WORKDIR /build
36
COPY . .
47
RUN make go-build-local

openshift/registry.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
2+
3+
ARG SOURCE_GIT_COMMIT
4+
ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
5+
26
WORKDIR /build
37
COPY . .
48
# TODO Modify upstream Makefile to separate the 'go build' commands

0 commit comments

Comments
 (0)