Skip to content

Commit eceb873

Browse files
openshift-pipelines-botpramodbindal
authored andcommitted
[bot:release-v1.18.x] update konflux configuration
1 parent 82cc522 commit eceb873

27 files changed

+387
-32
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
name: update-sources-release-v1.18.x
3+
4+
on:
5+
workflow_dispatch: {}
6+
schedule:
7+
- cron: "0 1 * * 1" # At 1AM every monday
8+
9+
jobs:
10+
11+
update-sources:
12+
runs-on: ubuntu-latest
13+
if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
steps:
18+
- name: Checkout the current repo
19+
uses: actions/checkout@v4
20+
with:
21+
ref: release-v1.18.x
22+
23+
- name: Clone tektoncd/pipeline
24+
run: |
25+
rm -fR upstream
26+
git clone https://github.com/tektoncd/pipeline upstream
27+
pushd upstream
28+
git checkout -B release-v0.68.x origin/release-v0.68.x
29+
popd
30+
31+
32+
- name: Commit new changes
33+
run: |
34+
git config user.name openshift-pipelines-bot
35+
git config user.email [email protected]
36+
git checkout -b actions/update/sources-release-v1.18.x
37+
pushd upstream
38+
OLD_COMMIT=$(cat ../head)
39+
NEW_COMMIT=$(git rev-parse HEAD)
40+
echo Previous commit: ${OLD_COMMIT}
41+
git show --stat ${OLD_COMMIT}
42+
echo New commit: ${NEW_COMMIT}
43+
git show --stat ${NEW_COMMIT}
44+
git diff --stat ${NEW_COMMIT}..${OLD_COMMIT} > /tmp/diff.txt
45+
git rev-parse HEAD > ../head
46+
popd
47+
rm -rf upstream/.git
48+
git add -f upstream head .konflux
49+
50+
if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
51+
echo "No change, exiting"
52+
exit 0
53+
fi
54+
55+
git commit -F- <<EOF
56+
[bot] Update release-v1.18.x from tektoncd/pipeline to ${NEW_COMMIT}
57+
58+
$ git diff --stat ${NEW_COMMIT}..${OLD_COMMIT}
59+
$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)
60+
61+
https://github.com/tektoncd/pipeline/compare/${NEW_COMMIT}..${OLD_COMMIT}
62+
EOF
63+
64+
git push -f origin actions/update/sources-release-v1.18.x
65+
66+
if [ "$(gh pr list --base release-v1.18.x --head actions/update/sources-release-v1.18.x --json url --jq 'length')" = "0" ]; then
67+
echo "creating PR..."
68+
gh pr create -B release-v1.18.x -H actions/update/sources-release-v1.18.x --label=automated --label=upstream --fill
69+
else
70+
echo "a PR already exists, editing..."
71+
gh pr edit --title "[bot] Update release-v1.18.x from tektoncd/pipeline to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /' | head -c 55555)"
72+
fi
73+
env:
74+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.konflux/1.18/application.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Application
5+
metadata:
6+
name: tektoncd-pipeline-1-18
7+
spec:
8+
displayName: tektoncd-pipeline 1.18
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-controller
9+
spec:
10+
componentName: controller
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/controller.Dockerfile
18+
revision: release-v1.18.x
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-entrypoint
9+
spec:
10+
componentName: entrypoint
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/entrypoint.Dockerfile
18+
revision: release-v1.18.x

.konflux/1.18/component-events.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-events
9+
spec:
10+
componentName: events
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/events.Dockerfile
18+
revision: release-v1.18.x

.konflux/1.18/component-nop.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-nop
9+
spec:
10+
componentName: nop
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/nop.Dockerfile
18+
revision: release-v1.18.x
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-resolvers
9+
spec:
10+
componentName: resolvers
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/resolvers.Dockerfile
18+
revision: release-v1.18.x
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-sidecarlogresults
9+
spec:
10+
componentName: sidecarlogresults
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/sidecarlogresults.Dockerfile
18+
revision: release-v1.18.x

.konflux/1.18/component-webhook.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-webhook
9+
spec:
10+
componentName: webhook
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/webhook.Dockerfile
18+
revision: release-v1.18.x
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by openshift-pipelines/hack. DO NOT EDIT.
2+
---
3+
apiVersion: appstudio.redhat.com/v1alpha1
4+
kind: Component
5+
metadata:
6+
annotations:
7+
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-multi-platform-oci-ta","bundle":"latest"}'
8+
name: tektoncd-pipeline-1-18-workingdirinit
9+
spec:
10+
componentName: workingdirinit
11+
application: tektoncd-pipeline-1-18
12+
build-nudges-ref:
13+
- operator-1-18-bundle
14+
source:
15+
git:
16+
url: https://github.com/openshift-pipelines/tektoncd-pipeline
17+
dockerfileUrl: .konflux/dockerfiles/workingdirinit.Dockerfile
18+
revision: release-v1.18.x

0 commit comments

Comments
 (0)