File tree 4 files changed +48
-2
lines changed
4 files changed +48
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Build Stage
2
+ FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.22 AS builder
3
+ WORKDIR /go/src
4
+ COPY . /go/src
5
+ RUN GIT_COMMIT=$(git rev-parse HEAD) && \
6
+ CGO_ENABLED=0 GOOS=linux go build -a -mod=readonly \
7
+ -ldflags "-X github.com/redhat-developer/gitops-backend/pkg/health.GitRevision=${GIT_COMMIT}" ./cmd/backend-http
8
+
9
+ # Final Stage
10
+ FROM registry.access.redhat.com/ubi8/ubi-minimal
11
+ WORKDIR /
12
+ COPY --from=builder /go/src/backend-http .
13
+ EXPOSE 8080
14
+ ENTRYPOINT ["./backend-http"]
15
+
16
+ LABEL \
17
+ name="openshift-gitops-1/gitops-rhel8" \
18
+ License="Apache 2.0" \
19
+ com.redhat.component="openshift-gitops-container" \
20
+ com.redhat.delivery.appregistry="false" \
21
+ upstream-vcs-type="git" \
22
+ summary="Red Hat OpenShift GitOps Backend Service" \
23
+ io.openshift.expose-services="" \
24
+ io.openshift.tags="openshift,gitops" \
25
+ io.k8s.display-name="Red Hat OpenShift GitOps Backend Service" \
26
+ maintainer="William Tam <
[email protected] >" \
27
+ description="Red Hat OpenShift GitOps Backend Service"
Original file line number Diff line number Diff line change 26
26
value : quay.io/redhat-user-workloads/rh-openshift-gitops-tenant/openshift-gitops-operator/gitops-backend:on-pr-{{revision}}
27
27
- name : image-expires-after
28
28
value : 5d
29
+ - name : build-platforms
30
+ value :
31
+ - linux/x86_64
29
32
- name : dockerfile
30
- value : Dockerfile
33
+ value : .konflux/Containerfile.plugin
34
+ - name : hermetic
35
+ value : " true"
36
+ - name : prefetch-input
37
+ value : ' {"type": "gomod", "path": "."}'
31
38
pipelineSpec :
32
39
description : |
33
40
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
Original file line number Diff line number Diff line change 23
23
value : ' {{revision}}'
24
24
- name : output-image
25
25
value : quay.io/redhat-user-workloads/rh-openshift-gitops-tenant/openshift-gitops-operator/gitops-backend:{{revision}}
26
+ - name : build-platforms
27
+ value :
28
+ - linux/x86_64
29
+ - linux/arm64
30
+ - linux/ppc64le
31
+ - linux/s390x
26
32
- name : dockerfile
27
- value : Dockerfile
33
+ value : .konflux/Containerfile.plugin
34
+ - name : hermetic
35
+ value : " true"
36
+ - name : prefetch-input
37
+ value : ' {"type": "gomod", "path": "."}'
28
38
pipelineSpec :
29
39
description : |
30
40
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ module github.com/redhat-developer/gitops-backend
2
2
3
3
go 1.22
4
4
5
+ toolchain go1.22.5
6
+
5
7
require (
6
8
github.com/argoproj/argo-cd v0.8.1-0.20210326223336-719d6a9c252e
7
9
github.com/go-git/go-git/v5 v5.1.0
You can’t perform that action at this time.
0 commit comments