File tree Expand file tree Collapse file tree 4 files changed +71
-10
lines changed
Expand file tree Collapse file tree 4 files changed +71
-10
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,15 @@ spec:
2424 - name : revision
2525 value : ' {{revision}}'
2626 - name : output-image
27- value : quay.io/rhceph-dev /promtail:on-pr-{{revision}}
27+ value : quay.io/rhceph-ci /promtail:on-pr-v8.1 -{{revision}}
2828 - name : image-expires-after
2929 value : 5d
3030 - name : build-platforms
3131 value :
3232 - linux/x86_64
33+ - linux/arm64
34+ - linux/s390x
35+ - linux/ppc64le
3336 - name : dockerfile
3437 value : Dockerfile
3538 - name : path-context
@@ -594,6 +597,11 @@ spec:
594597 value : $(tasks.build-image-index.results.IMAGE_URL)
595598 - name : image-digest
596599 value : $(tasks.build-image-index.results.IMAGE_DIGEST)
600+ - name : ADDITIONAL_TAGS
601+ value :
602+ - " pull-request-{{pull_request_number}}"
603+ - " from-branch-{{source_branch}}"
604+ - " {{target_branch}}-$(tasks.clone-repository.results.commit-timestamp)"
597605 runAfter :
598606 - build-image-index
599607 taskRef :
Original file line number Diff line number Diff line change @@ -23,10 +23,13 @@ spec:
2323 - name : revision
2424 value : ' {{revision}}'
2525 - name : output-image
26- value : quay.io/rhceph-dev /promtail:{{revision}}
26+ value : quay.io/rhceph-ci /promtail:v8.1- {{revision}}
2727 - name : build-platforms
2828 value :
2929 - linux/x86_64
30+ - linux/arm64
31+ - linux/s390x
32+ - linux/ppc64le
3033 - name : dockerfile
3134 value : Dockerfile
3235 - name : path-context
@@ -321,6 +324,10 @@ spec:
321324 value : $(tasks.build-image-index.results.IMAGE_URL)
322325 - name : IMAGE_DIGEST
323326 value : $(tasks.build-image-index.results.IMAGE_DIGEST)
327+ - name : ADDITIONAL_TAGS
328+ value :
329+ - " v8.1"
330+ - " {{target_branch}}-$(tasks.clone-repository.results.commit-timestamp)"
324331 runAfter :
325332 - build-image-index
326333 taskRef :
Original file line number Diff line number Diff line change 1- # FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.21 AS builder
2- FROM quay.io/projectquay/golang:1.24 AS builder
3- COPY loki loki
4- WORKDIR loki
1+ ARG REMOTE_SOURCE=loki
2+ ARG REMOTE_SOURCE_DIR=/go/app
3+
4+ FROM --platform=$BUILDPLATFORM quay.io/projectquay/golang:1.23 AS builder
5+
6+ # Build Arguments
7+ ARG REMOTE_SOURCE
8+ ARG REMOTE_SOURCE_DIR
9+
10+ COPY $REMOTE_SOURCE $REMOTE_SOURCE_DIR
11+ WORKDIR $REMOTE_SOURCE_DIR
512RUN make clean && make BUILD_IN_CONTAINER=false promtail
613
714
8- FROM registry.redhat.io/ubi9/ubi-micro
9- # Standard Red Hat labels
15+ FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9-minimal:latest
16+
17+ # Build Arguments
18+ ARG REMOTE_SOURCE
19+ ARG REMOTE_SOURCE_DIR
20+
1021LABEL com.redhat.component="promtail-container"
1122LABEL name="promtail"
1223LABEL version="v3.0.0"
1324LABEL summary="Provides promtail container"
1425LABEL io.k8s.display-name="Promtail container"
1526LABEL maintainer=
"Guillaume Abrioux <[email protected] >" 1627LABEL description="Responsible for gathering logs and sending them to Loki"
17- COPY --from=builder go/loki /clients/cmd/promtail/promtail /usr/bin/promtail
18- COPY --from=builder go/loki /clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
28+ COPY --from=builder $REMOTE_SOURCE_DIR /clients/cmd/promtail/promtail /usr/bin/promtail
29+ COPY --from=builder $REMOTE_SOURCE_DIR /clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
1930ENTRYPOINT ["/usr/bin/promtail" ]
2031CMD ["-config.file=/etc/promtail/config.yml" ]
Original file line number Diff line number Diff line change 1+ kind : Pipeline
2+ apiVersion : tekton.dev/v1beta1
3+ metadata :
4+ name : my-jenkins-trigger
5+ spec :
6+ params :
7+ - name : JENKINS_HOST_URL
8+ type : string
9+ - name : JOB_NAME
10+ type : string
11+ - description : ' Snapshot of the application'
12+ name : SNAPSHOT
13+ default : ' {"components": [{"name":"promtail-8-1", "containerImage": "quay.io/rhceph-dev/promtail:latest"}]}'
14+ type : string
15+ tasks :
16+ - name : trigger-jenkins-job
17+ taskRef :
18+ resolver : " git"
19+ params :
20+ - name : url
21+ value : https://github.com/konflux-ci/tekton-integration-catalog.git
22+ - name : revision
23+ value : main
24+ - name : pathInRepo
25+ value : tasks/triggers/jenkins/0.1/trigger-jenkins-job.yaml
26+ params :
27+ - name : JENKINS_HOST_URL
28+ value : $(params.JENKINS_HOST_URL)
29+ - name : JOB_NAME
30+ value : $(params.JOB_NAME)
31+ - name : JENKINS_SECRETS
32+ value : rkamath-jenkins-api
33+ - name : JOB_PARAMS
34+ value :
35+ - TEST_KONFLUX_STRING_PARAM=$(params.SNAPSHOT)
You can’t perform that action at this time.
0 commit comments