Skip to content

Commit 41872b8

Browse files
committed
generate-labels, LABELS
1 parent 0e1000c commit 41872b8

File tree

3 files changed

+72
-13
lines changed

3 files changed

+72
-13
lines changed

.tekton/oadp-oadp-non-admin-oadp-1-5-pull-request.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,20 @@ spec:
241241
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
242242
- name: IMAGE_APPEND_PLATFORM
243243
value: "true"
244+
- name: LABELS
245+
value:
246+
- $(tasks.generate-labels.results.labels[*])
247+
- License=Apache License 2.0
248+
- com.redhat.component=oadp-non-admin-container
249+
- io.k8s.description=OpenShift API for Data Protection - Non-Admin
250+
- io.k8s.display-name=OADP Non-Admin
251+
- io.openshift.build.source-location=https://github.com/migtools/oadp-non-admin
252+
- io.openshift.tags=migration
253+
- maintainer=OpenShift API for Data Protection Team <[email protected]>
254+
- name=oadp/oadp-non-admin-rhel9
255+
- summary=OpenShift API for Data Protection - Non-Admin
256+
- vendor=Red Hat, Inc.
257+
- version=1.5.0
244258
runAfter:
245259
- prefetch-dependencies
246260
taskRef:
@@ -604,6 +618,28 @@ spec:
604618
operator: in
605619
values:
606620
- "false"
621+
- name: generate-labels
622+
params:
623+
- name: label-templates
624+
value:
625+
- build-date=$SOURCE_DATE
626+
- short-commit=$(tasks.clone-repository.results.short-commit)
627+
- io.openshift.build.commit.id=$(tasks.clone-repository.results.commit)
628+
- io.openshift.build.commit.url=https://github.com/migtools/oadp-non-admin/commit/$(tasks.clone-repository.results.commit)
629+
- release=$ACTUAL_DATE_EPOCH
630+
- name: source-date-epoch
631+
value: $(tasks.clone-repository.results.commit-timestamp)
632+
runAfter:
633+
- clone-repository
634+
taskRef:
635+
params:
636+
- name: name
637+
value: generate-labels
638+
- name: bundle
639+
value: quay.io/konflux-ci/tekton-catalog/task-generate-labels:0.1@sha256:e1f4746dc33206a17867ead8f5c82a569cd925d352a19d108f205f54efc5589d
640+
- name: kind
641+
value: task
642+
resolver: bundles
607643
workspaces:
608644
- name: git-auth
609645
optional: true

.tekton/oadp-oadp-non-admin-oadp-1-5-push.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,20 @@ spec:
238238
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
239239
- name: IMAGE_APPEND_PLATFORM
240240
value: "true"
241+
- name: LABELS
242+
value:
243+
- $(tasks.generate-labels.results.labels[*])
244+
- License=Apache License 2.0
245+
- com.redhat.component=oadp-non-admin-container
246+
- io.k8s.description=OpenShift API for Data Protection - Non-Admin
247+
- io.k8s.display-name=OADP Non-Admin
248+
- io.openshift.build.source-location=https://github.com/migtools/oadp-non-admin
249+
- io.openshift.tags=migration
250+
- maintainer=OpenShift API for Data Protection Team <[email protected]>
251+
- name=oadp/oadp-non-admin-rhel9
252+
- summary=OpenShift API for Data Protection - Non-Admin
253+
- vendor=Red Hat, Inc.
254+
- version=1.5.0
241255
runAfter:
242256
- prefetch-dependencies
243257
taskRef:
@@ -601,6 +615,28 @@ spec:
601615
operator: in
602616
values:
603617
- "false"
618+
- name: generate-labels
619+
params:
620+
- name: label-templates
621+
value:
622+
- build-date=$SOURCE_DATE
623+
- short-commit=$(tasks.clone-repository.results.short-commit)
624+
- io.openshift.build.commit.id=$(tasks.clone-repository.results.commit)
625+
- io.openshift.build.commit.url=https://github.com/migtools/oadp-non-admin/commit/$(tasks.clone-repository.results.commit)
626+
- release=$ACTUAL_DATE_EPOCH
627+
- name: source-date-epoch
628+
value: $(tasks.clone-repository.results.commit-timestamp)
629+
runAfter:
630+
- clone-repository
631+
taskRef:
632+
params:
633+
- name: name
634+
value: generate-labels
635+
- name: bundle
636+
value: quay.io/konflux-ci/tekton-catalog/task-generate-labels:0.1@sha256:e1f4746dc33206a17867ead8f5c82a569cd925d352a19d108f205f54efc5589d
637+
- name: kind
638+
value: task
639+
resolver: bundles
604640
workspaces:
605641
- name: git-auth
606642
optional: true

Dockerfile.oadp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,3 @@ USER 65532:65532
1818

1919
ENTRYPOINT ["/manager"]
2020

21-
LABEL \
22-
com.redhat.component="oadp-non-admin-container" \
23-
version="1.5.0" \
24-
name="oadp/oadp-non-admin-rhel9" \
25-
License="Apache License 2.0" \
26-
io.k8s.display-name="OADP Non-Admin" \
27-
io.openshift.tags="migration" \
28-
io.k8s.description="OpenShift API for Data Protection - Non-Admin" \
29-
io.openshift.build.commit.id="58b7d83dc66a82fcac0f317a84c8845e3386921d" \
30-
io.openshift.build.source-location="https://github.com/migtools/oadp-non-admin" \
31-
io.openshift.build.commit.url="https://github.com/migtools/oadp-non-admin/commit/58b7d83dc66a82fcac0f317a84c8845e3386921d" \
32-
summary="OpenShift API for Data Protection - Non-Admin" \
33-
maintainer="OpenShift API for Data Protection Team <[email protected]>"

0 commit comments

Comments
 (0)