Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .tekton/pipeline-ref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ spec:
- name: BUILD_ARGS
value:
- $(params.build-args[*])
- "COMMIT=tasks.clone-repository.results.commit"
- "COMMIT=$(tasks.clone-repository.results.commit)"
- "BUILDVERSION=1.7.1"
- "DATE=$(tasks.clone-repository.results.commit-timestamp)"
- name: BUILD_ARGS_FILE
value: $(params.build-args-file)
- name: SOURCE_ARTIFACT
Expand Down
9 changes: 7 additions & 2 deletions contrib/docker/Dockerfile.downstream
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ ARG COMMIT
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22.5-202407301806.g4c8b32d.el9 as builder

ARG TARGETARCH=amd64
ARG BUILDVERSION
ARG DATE

WORKDIR /app

# Copy source code
Expand All @@ -17,11 +20,13 @@ COPY cmd/ cmd/
COPY pkg/ pkg/

RUN git status --porcelain
RUN GOARCH=$TARGETARCH make build_code
RUN GOARCH=$TARGETARCH go build -ldflags "-X main.BuildVersion=$BUILDVERSION -X main.BuildDate=$DATE" "./cmd/flowlogs-pipeline"

# final stage
FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.5

ARG COMMIT

COPY --from=builder /app/flowlogs-pipeline /app/

# expose ports
Expand All @@ -35,5 +40,5 @@ LABEL summary="Network Observability Flow-Logs Pipeline"
LABEL maintainer="support@redhat.com"
LABEL io.openshift.tags="network-observability-flowlogs-pipeline"
LABEL upstream-vcs-type="git"
LABEL upstream-vcs-type="$COMMIT"
LABEL upstream-vcs-ref="$COMMIT"
LABEL description="Flow-Logs Pipeline (a.k.a. FLP) is an observability tool that consumes logs from various inputs, transform them and export logs to loki and / or time series metrics to prometheus."