Skip to content

Commit 2323a47

Browse files
author
openshift-pipelines-bot
committed
[bot:next] update konflux configuration
1 parent 97319bb commit 2323a47

File tree

4 files changed

+48
-15
lines changed

4 files changed

+48
-15
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
2+
name: auto-merge-upstream-tektoncd-chains
3+
4+
on:
5+
workflow_dispatch: {}
6+
schedule:
7+
- cron: "*/30 * * * *" # At every 30 minutes
8+
9+
jobs:
10+
auto-approve:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- name: Checkout the current repo
16+
uses: actions/checkout@v4
17+
- name: auto-merge-upstream-tektoncd-chains
18+
run: |
19+
gh auth status
20+
git config user.name openshift-pipelines-bot
21+
git config user.email [email protected]
22+
# Approve and merge pull-request with no reviews
23+
for p in $(gh pr list --search "head:actions/update/sources-tektoncd-chains" --json "number" | jq ".[].number"); do
24+
gh pr merge --rebase --delete-branch --auto $p
25+
done
26+
env:
27+
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
28+

.github/workflows/update-sources.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2-
name: update-sources
3-
1+
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
2+
name: update-sources-tektoncd-chains
43
on:
54
workflow_dispatch: {}
65
schedule:
7-
- cron: "0 1 * * 1" # At 1AM every monday
6+
- cron: "0 1 * * *" # At 1:00 everyday
87

98
jobs:
109

1110
update-sources:
1211
runs-on: ubuntu-latest
13-
if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere
1412
permissions:
1513
contents: write
1614
pull-requests: write
@@ -25,15 +23,17 @@ jobs:
2523
rm -fR upstream
2624
git clone https://github.com/tektoncd/chains upstream
2725
pushd upstream
28-
git checkout -B release-v0.24.x origin/release-v0.24.x
26+
git checkout -B release-v0.26.x origin/release-v0.26.x
2927
popd
30-
31-
3228
- name: Commit new changes
3329
run: |
30+
31+
set -x
32+
3433
git config user.name openshift-pipelines-bot
3534
git config user.email [email protected]
3635
git checkout -b actions/update/sources-next
36+
touch head
3737
pushd upstream
3838
OLD_COMMIT=$(cat ../head)
3939
NEW_COMMIT=$(git rev-parse HEAD)

.tekton/tektoncd-chains-next-controller-pull-request.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
1+
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
22
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
@@ -15,7 +15,6 @@ metadata:
1515
("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
1616
".konflux/dockerfiles/controller.Dockerfile".pathChanged() ||
1717
".tekton/tektoncd-chains-next-controller-pull-request.yaml".pathChanged())
18-
creationTimestamp: null
1918
labels:
2019
appstudio.openshift.io/application: openshift-pipelines-core-next
2120
appstudio.openshift.io/component: tektoncd-chains-next-controller
@@ -31,11 +30,14 @@ spec:
3130
- name: revision
3231
value: '{{revision}}'
3332
- name: output-image
34-
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/chains-controller-rhel9:on-pr-{{revision}}
33+
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-chains-controller-rhel9:on-pr-{{revision}}
3534
- name: image-expires-after
3635
value: 5d
3736
- name: dockerfile
3837
value: .konflux/dockerfiles/controller.Dockerfile
38+
- name: additional-tags
39+
value:
40+
- "on-pr-next"
3941
- name: build-platforms
4042
value:
4143
- linux/x86_64

.tekton/tektoncd-chains-next-controller-push.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
1+
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
22
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
@@ -25,14 +25,17 @@ spec:
2525
params:
2626
- name: git-url
2727
value: '{{source_url}}'
28-
- name: revision
29-
value: '{{revision}}'
3028
- name: upstream-git-url
3129
value: 'https://github.com/tektoncd/chains'
30+
- name: revision
31+
value: '{{revision}}'
3232
- name: output-image
33-
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/chains-controller-rhel9:{{revision}}
33+
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-chains-controller-rhel9:{{revision}}
3434
- name: dockerfile
3535
value: .konflux/dockerfiles/controller.Dockerfile
36+
- name: additional-tags
37+
value:
38+
- "next"
3639
- name: prefetch-input
3740
value: |
3841
{"type": "rpm", "path": ".konflux/rpms"}

0 commit comments

Comments
 (0)