Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COST-5554] Update downstream pipeline #451

Merged
merged 3 commits into from
Oct 4, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "downstream"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "downstream" &&
(
".tekton/bundle-pr.yaml".pathChanged() ||
"bundle/metadata/***".pathChanged() ||
"bundle/manifests/***".pathChanged() ||
"bundle.Dockerfile".pathChanged()
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: costmanagement-metrics-operator
appstudio.openshift.io/component: costmanagement-metrics-operator-bundle
pipelines.appstudio.openshift.io/type: build
name: costmanagement-metrics-operator-bundle-on-pull-request
name: downstream-operator-bundle-pr
namespace: cost-mgmt-dev-tenant
spec:
params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "downstream"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "downstream" &&
(
".tekton/bundle-push.yaml".pathChanged() ||
"bundle/metadata/***".pathChanged() ||
"bundle/manifests/***".pathChanged() ||
"bundle.Dockerfile".pathChanged()
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: costmanagement-metrics-operator
appstudio.openshift.io/component: costmanagement-metrics-operator-bundle
pipelines.appstudio.openshift.io/type: build
name: costmanagement-metrics-operator-bundle-on-push
name: downstream-operator-bundle-push
namespace: cost-mgmt-dev-tenant
spec:
params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "downstream"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "downstream" &&
(
".tekton/operator-push.yaml".pathChanged() ||
"Dockerfile".pathChanged()
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: costmanagement-metrics-operator
appstudio.openshift.io/component: costmanagement-metrics-operator
pipelines.appstudio.openshift.io/type: build
name: costmanagement-metrics-operator-on-pull-request
name: downstream-operator-pr
namespace: cost-mgmt-dev-tenant
spec:
params:
Expand Down Expand Up @@ -106,8 +109,10 @@ spec:
name: build-args-file
type: string
- default:
- linux/x86_64
- linux/amd64
- linux/arm64
- linux/s390x
- linux/ppc64le
description: List of platforms to build the container images on. The available
set of values is determined by the configuration of the multi-platform-controller.
name: build-platforms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "downstream"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "downstream" &&
(
".tekton/operator-push.yaml".pathChanged() ||
"Dockerfile".pathChanged()
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: costmanagement-metrics-operator
appstudio.openshift.io/component: costmanagement-metrics-operator
pipelines.appstudio.openshift.io/type: build
name: costmanagement-metrics-operator-on-push
name: downstream-operator-push
namespace: cost-mgmt-dev-tenant
spec:
params:
Expand Down Expand Up @@ -103,8 +106,10 @@ spec:
name: build-args-file
type: string
- default:
- linux/x86_64
- linux/amd64
- linux/arm64
- linux/s390x
- linux/ppc64le
description: List of platforms to build the container images on. The available
set of values is determined by the configuration of the multi-platform-controller.
name: build-platforms
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22 AS builder

ARG TARGETOS
ARG TARGETARCH

USER root

WORKDIR /workspace
Expand Down
4 changes: 2 additions & 2 deletions bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ COPY bundle/metadata /metadata/
# Openshift specific labels
LABEL io.k8s.display-name='Cost Management Metrics Operator'
LABEL io.k8s.description='Component required to gather metrics from Prometheus, package and upload them to the cost management service in the cloud. The operator can work in clusters connected to the Internet and air-gapped (with additional configuration and steps)'
LABEL io.openshift.build.commit.id=REPLACE_REF
LABEL io.openshift.build.commit.url=https://github.com/project-koku/koku-metrics-operator/commit/REPLACE_REF
LABEL io.openshift.build.commit.id='6b4d72a4a629527c1de086b416faf6d226fe587a'
LABEL io.openshift.build.commit.url='https://github.com/project-koku/koku-metrics-operator/commit/6b4d72a4a629527c1de086b416faf6d226fe587a'
LABEL io.openshift.build.source-location=https://github.com/project-koku/koku-metrics-operator
LABEL io.openshift.maintainer.component='Cost Management Metrics Operator'
LABEL io.openshift.maintainer.product='OpenShift Container Platform'
Expand Down