Skip to content

Commit 4479acf

Browse files
andrewschoenbigjust
authored andcommitted
konflux: add additional tags
Signed-off-by: Andrew Schoen <[email protected]>
1 parent a9775f0 commit 4479acf

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.tekton/snmp-notifier-6-1-pull-request.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
- name: revision
2525
value: '{{revision}}'
2626
- name: output-image
27-
value: quay.io/rhceph-dev/snmp-notifier:on-pr-{{revision}}
27+
value: quay.io/rhceph-dev/snmp-notifier:on-pr-v6.1-{{revision}}
2828
- name: image-expires-after
2929
value: 5d
3030
- name: build-platforms
@@ -554,6 +554,11 @@ spec:
554554
value: $(tasks.build-image-index.results.IMAGE_URL)
555555
- name: IMAGE_DIGEST
556556
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
557+
- name: ADDITIONAL_TAGS
558+
value:
559+
- "pull-request-{{pull_request_number}}"
560+
- "from-branch-{{source_branch}}"
561+
- "{{target_branch}}-$(tasks.clone-repository.results.commit-timestamp)"
557562
runAfter:
558563
- build-image-index
559564
taskRef:

.tekton/snmp-notifier-6-1-push.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
- name: revision
2424
value: '{{revision}}'
2525
- name: output-image
26-
value: quay.io/rhceph-dev/snmp-notifier:{{revision}}
26+
value: quay.io/rhceph-dev/snmp-notifier:v6.1-{{revision}}
2727
- name: build-platforms
2828
value:
2929
- linux/x86_64
@@ -551,6 +551,10 @@ spec:
551551
value: $(tasks.build-image-index.results.IMAGE_URL)
552552
- name: IMAGE_DIGEST
553553
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
554+
- name: ADDITIONAL_TAGS
555+
value:
556+
- "v6.1"
557+
- "{{target_branch}}-$(tasks.clone-repository.results.commit-timestamp)"
554558
runAfter:
555559
- build-image-index
556560
taskRef:

0 commit comments

Comments
 (0)