Skip to content

Commit

Permalink
[bot:main] update konflux configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
openshift-pipelines-bot committed Feb 14, 2025
1 parent 768502d commit e273504
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added .bin/catalog-cd
Binary file not shown.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/tekton-caches-main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .konflux/main/image-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ metadata:
appstudio.redhat.com/application: tekton-caches-main
spec:
image:
name: tekton-caches-main/cache
name: main/cache-rhel9
visibility: public
52 changes: 52 additions & 0 deletions .tekton/boussole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: boussole
annotations:
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/pac-boussole/refs/heads/main/pipeline-boussole.yaml"
pipelinesascode.tekton.dev/on-comment: "^/(help|rebase|merge|lgtm|(cherry-pick|assign|unassign|label|unlabel)[ ].*)$"
pipelinesascode.tekton.dev/max-keep-runs: "2"
spec:
params:
- name: trigger_comment
value: |
'{{trigger_comment}}'
- name: repo_owner
value: '{{ repo_owner }}'
- name: repo_name
value: '{{ repo_name }}'
- name: pull_request_number
value: '{{ pull_request_number }}'
- name: pull_request_sender
value: '{{ body.issue.user.login }}'
- name: git_auth_secret
value: '{{ git_auth_secret }}'
- name: comment_sender
value: '{{ sender }}'
#
# Optional parameters (value is the default):
#
# The key in git_auth_secret that contains the token (default: git-provider-token)
# - name: git_auth_secret_key
# value: git-provider-token
#
# The /lgtm threshold needed of approvers for a PR to be approved (default: 1)
- name: lgtm_threshold
value: "1"
#
# The permissionms the user need to trigger a lgtm
- name: lgtm_permissions
value: "admin,write"
#
# The review event when lgtm is triggered, can be APPROVE,
# REQUEST_CHANGES, or COMMENT if setting to empty string it will be set as
# PENDING
# - name: lgtm_review_event
# value: "APPROVE"
#
# The merge method to use. Can be one of: merge, squash, rebase
- name: merge_method
value: "rebase"
pipelineRef:
name: boussole
2 changes: 1 addition & 1 deletion .tekton/tekton-caches-main-cache-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/tekton-caches-main/cache:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/main/cache-rhel9:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .tekton/tekton-caches-main-cache-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/tekton-caches-main/cache:{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/main/cache-rhel9:{{revision}}
- name: dockerfile
value: .konflux/dockerfiles/cache.Dockerfile
- name: prefetch-input
Expand Down
Empty file added cache.tar
Empty file.
15 changes: 15 additions & 0 deletions internal/provider/main/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package main

import (
"fmt"
"github.com/openshift-pipelines/tekton-caches/internal/tar"
)

func main() {
err := tar.Tarit("/tmp/1714", "/tmp/cache.tar.gz")
if err != nil {
println(err.Error())
panic(err)
}
fmt.Printf("Done")
}

0 comments on commit e273504

Please sign in to comment.