Skip to content

Commit 29f4565

Browse files
committed
Update .tekton files to drop develop files and add comments to PR on 3.19
1 parent bd9ab2c commit 29f4565

6 files changed

Lines changed: 44 additions & 2128 deletions

.tekton/foreman-3-19-pull-request.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: tekton.dev/v1
22
kind: PipelineRun
33
metadata:
44
annotations:
5+
pipelinesascode.tekton.dev/task: "github-add-comment:0.3.0"
56
build.appstudio.openshift.io/repo: https://github.com/theforeman/foreman-oci-images?rev={{revision}}
67
build.appstudio.redhat.com/commit_sha: '{{revision}}'
78
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
@@ -464,6 +465,9 @@ spec:
464465
value: $(tasks.build-image-index.results.IMAGE_URL)
465466
- name: IMAGE_DIGEST
466467
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
468+
- name: ADDITIONAL_TAGS
469+
value:
470+
- "pull-request-{{pull_request_number}}"
467471
runAfter:
468472
- build-image-index
469473
taskRef:
@@ -520,6 +524,23 @@ spec:
520524
operator: in
521525
values:
522526
- "false"
527+
- name: post-image-tag
528+
runAfter:
529+
- apply-tags
530+
taskRef:
531+
name: github-add-comment
532+
params:
533+
- name: REQUEST_URL
534+
value: "{{ repo_url }}/pull/{{ pull_request_number }}"
535+
- name: COMMENT_OR_FILE
536+
value: |
537+
:package: **Build complete!**
538+
Test this image with tag: `quay.io/foreman/stage/foreman:pull-request-{{ pull_request_number }}`
539+
Built from commit: [`{{ revision }}`]({{ repo_url }}/commit/{{ revision }})
540+
- name: GITHUB_TOKEN_SECRET_NAME
541+
value: "{{ git_auth_secret }}"
542+
- name: GITHUB_TOKEN_SECRET_KEY
543+
value: "git-provider-token"
523544
workspaces:
524545
- name: git-auth
525546
optional: true

0 commit comments

Comments
 (0)