Skip to content

Commit

Permalink
Revert "As There is no upstream this repo should build on every change."
Browse files Browse the repository at this point in the history
This reverts commit 14f4051.
  • Loading branch information
pramodbindal committed Jan 13, 2025
1 parent 14f4051 commit a93704d
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .tekton/tekton-caches-main-cache-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ 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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "main" &&
("***".pathChanged() ||
".konflux/dockerfiles/cache.Dockerfile".pathChanged() ||
".tekton/tekton-caches-main-cache-pull-request.yaml".pathChanged() ||
".tekton/docker-build-ta.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: tekton-caches-main
Expand Down
7 changes: 6 additions & 1 deletion .tekton/tekton-caches-main-cache-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ 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 == "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "main" &&
("***".pathChanged() ||
".konflux/dockerfiles/cache.Dockerfile".pathChanged() ||
".tekton/tekton-caches-main-cache-push.yaml".pathChanged() ||
".tekton/docker-build-ta.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: tekton-caches-main
Expand Down
48 changes: 48 additions & 0 deletions .tekton/tekton-caches-next-cache-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/tekton-caches?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
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
== "main" &&
("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
".konflux/dockerfiles/cache.Dockerfile".pathChanged() ||
".tekton/tekton-caches-next-cache-pull-request.yaml".pathChanged() ||
".tekton/docker-build-ta.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: tekton-caches-next
appstudio.openshift.io/component: tekton-caches-next-cache
pipelines.appstudio.openshift.io/type: build
name: tekton-caches-next-cache-on-pull-request
namespace: tekton-ecosystem-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/tekton-caches-next/cache:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: .konflux/dockerfiles/cache.Dockerfile
- name: build-platforms
value:
- linux/x86_64
- name: prefetch-input
value: |
{"type": "rpm", "path": ".konflux/rpms"}
pipelineRef:
name: docker-build-ta
workspaces:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}
46 changes: 46 additions & 0 deletions .tekton/tekton-caches-next-cache-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/tekton-caches?rev={{revision}}
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
== "main" &&
("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
".konflux/dockerfiles/cache.Dockerfile".pathChanged() ||
".tekton/tekton-caches-next-cache-push.yaml".pathChanged() ||
".tekton/docker-build-ta.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: tekton-caches-next
appstudio.openshift.io/component: tekton-caches-next-cache
pipelines.appstudio.openshift.io/type: build
name: tekton-caches-next-cache-on-push
namespace: tekton-ecosystem-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/tekton-caches-next/cache:{{revision}}
- name: dockerfile
value: .konflux/dockerfiles/cache.Dockerfile
- name: build-platforms
value:
- linux/x86_64
- linux-m2xlarge/arm64
- name: prefetch-input
value: |
{"type": "rpm", "path": ".konflux/rpms"}
pipelineRef:
name: docker-build-ta
workspaces:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}

0 comments on commit a93704d

Please sign in to comment.