Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/auto-merge-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
name: auto-merge-upstream-tektoncd-hub

on:
workflow_dispatch: {}
schedule:
- cron: "*/30 * * * *" # At every 30 minutes

jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout the current repo
uses: actions/checkout@v4
- name: auto-merge-upstream-tektoncd-hub
run: |
gh auth status
git config user.name openshift-pipelines-bot
git config user.email [email protected]
# Approve and merge pull-request with no reviews
for p in $(gh pr list --search "head:actions/update/sources-tektoncd-hub" --json "number" | jq ".[].number"); do
gh pr merge --rebase --delete-branch --auto $p
done
env:
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}

16 changes: 8 additions & 8 deletions .github/workflows/update-sources.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Generated by openshift-pipelines/hack. DO NOT EDIT.
name: update-sources

# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
name: update-sources-tektoncd-hub
on:
workflow_dispatch: {}
schedule:
- cron: "0 1 * * 1" # At 1AM every monday
- cron: "0 1 * * *" # At 1:00 everyday

jobs:

update-sources:
runs-on: ubuntu-latest
if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere
permissions:
contents: write
pull-requests: write
Expand All @@ -25,15 +23,17 @@ jobs:
rm -fR upstream
git clone https://github.com/tektoncd/hub upstream
pushd upstream
git checkout -B release-v1.20.0 origin/release-v1.20.0
git checkout -B release-v1.23.x origin/release-v1.23.x
popd


- name: Commit new changes
run: |

set -x

git config user.name openshift-pipelines-bot
git config user.email [email protected]
git checkout -b actions/update/sources-next
touch head
pushd upstream
OLD_COMMIT=$(cat ../head)
NEW_COMMIT=$(git rev-parse HEAD)
Expand Down
8 changes: 5 additions & 3 deletions .tekton/tektoncd-hub-next-api-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand All @@ -15,7 +15,6 @@ metadata:
("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
".konflux/dockerfiles/api.Dockerfile".pathChanged() ||
".tekton/tektoncd-hub-next-api-pull-request.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-pipelines-core-next
appstudio.openshift.io/component: tektoncd-hub-next-api
Expand All @@ -31,11 +30,14 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/hub-api-rhel9:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-hub-api-rhel9:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: .konflux/dockerfiles/api.Dockerfile
- name: additional-tags
value:
- "on-pr-next"
- name: build-platforms
value:
- linux/x86_64
Expand Down
11 changes: 7 additions & 4 deletions .tekton/tektoncd-hub-next-api-push.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand All @@ -25,14 +25,17 @@ spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: upstream-git-url
value: 'https://github.com/tektoncd/hub'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/hub-api-rhel9:{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-hub-api-rhel9:{{revision}}
- name: dockerfile
value: .konflux/dockerfiles/api.Dockerfile
- name: additional-tags
value:
- "next"
- name: prefetch-input
value: |
{"type": "rpm", "path": ".konflux/rpms"}
Expand Down
8 changes: 5 additions & 3 deletions .tekton/tektoncd-hub-next-db-migration-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand All @@ -15,7 +15,6 @@ metadata:
("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
".konflux/dockerfiles/db-migration.Dockerfile".pathChanged() ||
".tekton/tektoncd-hub-next-db-migration-pull-request.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-pipelines-core-next
appstudio.openshift.io/component: tektoncd-hub-next-db-migration
Expand All @@ -31,11 +30,14 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/hub-db-migration-rhel9:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-hub-db-migration-rhel9:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: .konflux/dockerfiles/db-migration.Dockerfile
- name: additional-tags
value:
- "on-pr-next"
- name: build-platforms
value:
- linux/x86_64
Expand Down
11 changes: 7 additions & 4 deletions .tekton/tektoncd-hub-next-db-migration-push.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand All @@ -25,14 +25,17 @@ spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: upstream-git-url
value: 'https://github.com/tektoncd/hub'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/hub-db-migration-rhel9:{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-hub-db-migration-rhel9:{{revision}}
- name: dockerfile
value: .konflux/dockerfiles/db-migration.Dockerfile
- name: additional-tags
value:
- "next"
- name: prefetch-input
value: |
{"type": "rpm", "path": ".konflux/rpms"}
Expand Down
8 changes: 5 additions & 3 deletions .tekton/tektoncd-hub-next-ui-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand All @@ -15,7 +15,6 @@ metadata:
("upstream/***".pathChanged() || ".konflux/patches/***".pathChanged() || ".konflux/rpms/***".pathChanged() ||
".konflux/dockerfiles/ui.Dockerfile".pathChanged() ||
".tekton/tektoncd-hub-next-ui-pull-request.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: openshift-pipelines-core-next
appstudio.openshift.io/component: tektoncd-hub-next-ui
Expand All @@ -31,11 +30,14 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/hub-ui-rhel9:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-hub-ui-rhel9:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: .konflux/dockerfiles/ui.Dockerfile
- name: additional-tags
value:
- "on-pr-next"
- name: build-platforms
value:
- linux/x86_64
Expand Down
11 changes: 7 additions & 4 deletions .tekton/tektoncd-hub-next-ui-push.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand All @@ -25,14 +25,17 @@ spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: upstream-git-url
value: 'https://github.com/tektoncd/hub'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/next/hub-ui-rhel9:{{revision}}
value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/pipelines-hub-ui-rhel9:{{revision}}
- name: dockerfile
value: .konflux/dockerfiles/ui.Dockerfile
- name: additional-tags
value:
- "next"
- name: prefetch-input
value: |
[{"type": "npm", "path": "upstream/ui"}, {"type": "rpm", "path": ".konflux/rpms"}]
Expand Down