-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And set go version to 1.20 in go.mod since we have go 1.20 now.
- Loading branch information
Showing
5 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:82d9bc5d3ceb43635288880f26207201e55d1c688a60ebbfff4f54d4963a62a1 AS builder | ||
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:9a0f860e143f2f771bee92ab3b0161e10e2390370152e07e6bcf8105242cee13 AS builder | ||
|
||
ARG BINARY_NAME=pipelines-as-code-controller | ||
COPY . /src | ||
WORKDIR /src | ||
RUN \ | ||
git config --global --add safe.directory /src && \ | ||
make /tmp/${BINARY_NAME} LDFLAGS="-s -w" OUTPUT_DIR=/tmp | ||
git config --global --add safe.directory /src && \ | ||
make /tmp/${BINARY_NAME} LDFLAGS="-s -w" OUTPUT_DIR=/tmp | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
|
||
ARG BINARY_NAME=pipelines-as-code-controller | ||
LABEL com.redhat.component=${BINARY_NAME} \ | ||
name=openshift-pipelines/${BINARY_NAME} \ | ||
[email protected] \ | ||
summary="This image is to run Pipelines as Code ${BINARY_NAME} component" | ||
name=openshift-pipelines/${BINARY_NAME} \ | ||
[email protected] \ | ||
summary="This image is to run Pipelines as Code ${BINARY_NAME} component" | ||
|
||
COPY --from=builder /tmp/${BINARY_NAME} /usr/bin/${BINARY_NAME} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters