-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Containerfile.plugin and update tekton config for docker file for…
… down stream build Signed-off-by: Mangaal <[email protected]>
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Build Stage | ||
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.22 AS builder | ||
WORKDIR /go/src | ||
COPY . /go/src | ||
RUN GIT_COMMIT=$(git rev-parse HEAD) && \ | ||
CGO_ENABLED=0 GOOS=linux go build -a -mod=readonly \ | ||
-ldflags "-X github.com/redhat-developer/gitops-backend/pkg/health.GitRevision=${GIT_COMMIT}" ./cmd/backend-http | ||
|
||
# Final Stage | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
WORKDIR / | ||
COPY --from=builder /go/src/backend-http . | ||
EXPOSE 8080 | ||
ENTRYPOINT ["./backend-http"] | ||
|
||
LABEL \ | ||
name="openshift-gitops-1/gitops-rhel8" \ | ||
version=${CI_CONTAINER_VERSION} \ | ||
License="Apache 2.0" \ | ||
com.redhat.component="openshift-gitops-container" \ | ||
com.redhat.delivery.appregistry="false" \ | ||
release=${CI_CONTAINER_RELEASE} \ | ||
upstream-version=${CI_UPSTREAM_VERSION} \ | ||
upstream-vcs-ref="${CI_GITOPS_BACKEND_UPSTREAM_COMMIT}" \ | ||
upstream-vcs-type="git" \ | ||
summary="Red Hat OpenShift GitOps Backend Service" \ | ||
io.openshift.expose-services="" \ | ||
io.openshift.tags="openshift,gitops" \ | ||
io.k8s.display-name="Red Hat OpenShift GitOps Backend Service" \ | ||
maintainer="William Tam <[email protected]>" \ | ||
description="Red Hat OpenShift GitOps Backend Service" |
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