Skip to content

Commit

Permalink
Discover new branches and update pipelines (#506)
Browse files Browse the repository at this point in the history
Co-authored-by: openshift-merge-bot[bot] <openshift-merge-bot[bot]@users.noreply.github.com>
  • Loading branch information
serverless-qe and openshift-merge-bot[bot] authored Jan 30, 2025
1 parent 6a77125 commit eb33299
Show file tree
Hide file tree
Showing 11 changed files with 254 additions and 77 deletions.
120 changes: 120 additions & 0 deletions .github/workflows/release-generate-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,30 @@ jobs:
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/backstage-plugins
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
name: '[backstage-plugins - release-v1.17] Create Konflux PR'
run: |
set -x
repo="backstage-plugins"
branch="sync-konflux-release-v1.17"
target_branch="release-v1.17"
git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
remote_exists=$(git ls-remote --heads fork "$branch")
if [ -z "$remote_exists" ]; then
# remote doesn't exist.
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
fi
git fetch fork "$branch"
if git diff --quiet "fork/$branch" "$branch"; then
echo "Branches are identical. No need to force push."
else
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/backstage-plugins
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
Expand Down Expand Up @@ -332,6 +356,30 @@ jobs:
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/client
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
name: '[client - release-v1.17] Create Konflux PR'
run: |
set -x
repo="client"
branch="sync-konflux-release-v1.17"
target_branch="release-v1.17"
git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
remote_exists=$(git ls-remote --heads fork "$branch")
if [ -z "$remote_exists" ]; then
# remote doesn't exist.
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
fi
git fetch fork "$branch"
if git diff --quiet "fork/$branch" "$branch"; then
echo "Branches are identical. No need to force push."
else
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/client
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
Expand Down Expand Up @@ -620,6 +668,30 @@ jobs:
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/kn-plugin-event
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
name: '[kn-plugin-event - release-1.17] Create Konflux PR'
run: |
set -x
repo="kn-plugin-event"
branch="sync-konflux-release-1.17"
target_branch="release-1.17"
git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
remote_exists=$(git ls-remote --heads fork "$branch")
if [ -z "$remote_exists" ]; then
# remote doesn't exist.
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
fi
git fetch fork "$branch"
if git diff --quiet "fork/$branch" "$branch"; then
echo "Branches are identical. No need to force push."
else
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/kn-plugin-event
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
Expand Down Expand Up @@ -692,6 +764,30 @@ jobs:
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/kn-plugin-func
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
name: '[kn-plugin-func - release-v1.17] Create Konflux PR'
run: |
set -x
repo="kn-plugin-func"
branch="sync-konflux-release-v1.17"
target_branch="release-v1.17"
git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
remote_exists=$(git ls-remote --heads fork "$branch")
if [ -z "$remote_exists" ]; then
# remote doesn't exist.
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
fi
git fetch fork "$branch"
if git diff --quiet "fork/$branch" "$branch"; then
echo "Branches are identical. No need to force push."
else
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/kn-plugin-func
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
Expand Down Expand Up @@ -980,3 +1076,27 @@ jobs:
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/serving
- env:
GH_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
GITHUB_TOKEN: ${{ secrets.SERVERLESS_QE_ROBOT }}
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && github.ref_name == 'main' }}
name: '[serving - release-v1.17] Create Konflux PR'
run: |
set -x
repo="serving"
branch="sync-konflux-release-v1.17"
target_branch="release-v1.17"
git remote add fork "https://github.com/serverless-qe/$repo.git" || true # ignore: already exists errors
remote_exists=$(git ls-remote --heads fork "$branch")
if [ -z "$remote_exists" ]; then
# remote doesn't exist.
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f || exit 1
fi
git fetch fork "$branch"
if git diff --quiet "fork/$branch" "$branch"; then
echo "Branches are identical. No need to force push."
else
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/$repo.git" "$branch:$branch" -f
fi
gh pr create --base "$target_branch" --head "serverless-qe:$branch" --title "[$target_branch] Update Konflux configurations" --body "Update Konflux components and pipelines" --label needs-ok-to-test || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/serving
11 changes: 11 additions & 0 deletions config/backstage-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ config:
- version: "4.17"
- onDemand: true
version: "4.13"
release-v1.17:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- version: "4.17"
- onDemand: true
version: "4.13"
repositories:
- dockerfiles: {}
e2e:
Expand Down
11 changes: 11 additions & 0 deletions config/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ config:
- skipCron: true
useClusterPool: true
version: "4.17"
release-v1.17:
konflux:
enabled: true
openShiftVersions:
- candidateRelease: true
onDemand: true
skipCron: true
version: "4.18"
- skipCron: true
useClusterPool: true
version: "4.17"
repositories:
- canonicalGoRepository: github.com/knative/client
dockerfiles: {}
Expand Down
7 changes: 7 additions & 0 deletions config/kn-plugin-event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ config:
version: "4.18"
- useClusterPool: true
version: "4.17"
release-1.17:
konflux:
enabled: true
openShiftVersions:
- skipCron: true
useClusterPool: true
version: "4.17"
release-next:
openShiftVersions:
- skipCron: true
Expand Down
7 changes: 7 additions & 0 deletions config/kn-plugin-func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ config:
- skipCron: true
useClusterPool: true
version: "4.17"
release-v1.17:
konflux:
enabled: true
openShiftVersions:
- skipCron: true
useClusterPool: true
version: "4.17"
serverless-1.34:
openShiftVersions:
- skipCron: true
Expand Down
13 changes: 13 additions & 0 deletions config/serving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ config:
version: "4.17"
- onDemand: true
version: "4.13"
release-v1.17:
konflux:
enabled: true
openShiftVersions:
- useClusterPool: true
version: "4.17"
- onDemand: true
version: "4.13"
skipDockerFilesMatches:
- openshift/ci-operator/knative-perf-images.*
skipE2EMatches:
- perf-tests$
- .*e2e-tls$
repositories:
- dockerfiles:
excludes:
Expand Down
30 changes: 15 additions & 15 deletions pkg/konfluxgen/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ spec:
- name: name
value: sast-snyk-check-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.3@sha256:af93b35e6e71a6ff7f3785ad8d8497b11204a5c0c33ab1a78b44f9d43f49c7a5
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.3@sha256:ed777841052e05c61abc9fc66f6aad65f113bad719eeb2e04ce490fc175aaebe
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -166,7 +166,7 @@ spec:
- name: name
value: prefetch-dependencies-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:994f816e36ac832f4020647afd69223a015c84c503f925013c573fed52f05420
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:19f352d54e9d33cc78d8ad9456e7d65dfee8ffeb0543ad818e5e1ca4f6b28af1
- name: kind
value: task
resolver: bundles
Expand All @@ -188,7 +188,7 @@ spec:
- name: name
value: apply-tags
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.1@sha256:2c2d88c07623b2d25163994ded6e9f29205ea5bbab090f4c86379739940028b9
value: quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.1@sha256:fa7aa88ffe01eeeaa07c8720b27e50e27f6f136ef33595efaa16a0eb4598ea02
- name: kind
value: task
resolver: bundles
Expand All @@ -205,7 +205,7 @@ spec:
- name: name
value: init
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:90dda596d44b3f861889da2fba161dff34c6116fe76c3989e3f84262ea0f29cd
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:4c6712db9419461b8c8a39523c012cb0dc061fb58563bb9170b3777d74f54659
- name: kind
value: task
resolver: bundles
Expand All @@ -226,7 +226,7 @@ spec:
- name: name
value: git-clone-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:f72fcca6732516339d55ac5f01660e287968e64e857a40a8608db27e298b5126
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:36d98ab04eaac2c964149060c773ac20df42f91527db6c40b7b250e6eeff5821
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -277,7 +277,7 @@ spec:
- name: name
value: buildah-remote-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.3@sha256:6c2c433ef94187e9aa73575004029cd6e2bbbdeefc7f90070595fb20f77bc121
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.3@sha256:e7e029e27a415bde652791f251f904b347f0c197ce0a6665e0a7e82d40ae04d8
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -306,7 +306,7 @@ spec:
- name: name
value: build-image-index
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:479775c8655d815fb515aeb97efc0e64284a8520c452754981970900b937a393
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:be5e5d4ef43f14f6dc3f8da4df52b3e3b2529f9d64e706471b0317b5a07a9046
- name: kind
value: task
resolver: bundles
Expand All @@ -330,7 +330,7 @@ spec:
- name: name
value: source-build-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.1@sha256:75e882bf1619dd45a4043060ce42a6ad3ce781264ade5b7f66a1d994ee159126
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.1@sha256:18241f95266a5e4316449f25a600f0f035d32a81c72ecd609a7e886de1843163
- name: kind
value: task
resolver: bundles
Expand All @@ -356,7 +356,7 @@ spec:
- name: name
value: deprecated-image-check
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.4@sha256:650330fde0773f73f6bac77ae573031c44c79165d9503b0d5ec1db3e6ef981d7
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.4@sha256:241f87f75a6e4303fbd64b32ba1715d76fe3805c48a6c21829e6a564bcc3a576
- name: kind
value: task
resolver: bundles
Expand All @@ -378,7 +378,7 @@ spec:
- name: name
value: clair-scan
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.2@sha256:907f11c67b0330480cbf85c23b1085acc5a049ab90af980169251860a3d97ef7
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.2@sha256:f636f2cbe91d9d4d9685a38c8bc680a36e17f568ec0e60a93da82d1284b488c5
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -420,7 +420,7 @@ spec:
- name: name
value: clamav-scan
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.2@sha256:c12e7a774bb07ad2796c01071b0dc0f199111b0ee99c45b55fa599e23b200bae
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.2@sha256:0db068e8a59612472a2483f5113893d0c5c9102e9ad7647d9a4789360e5bc2dc
- name: kind
value: task
resolver: bundles
Expand All @@ -446,7 +446,7 @@ spec:
- name: name
value: sast-shell-check-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-sast-shell-check-oci-ta:0.1@sha256:7553ec6925d0586b286502669b8e31a39dc73501f657426bac99019ac598d6ab
value: quay.io/konflux-ci/tekton-catalog/task-sast-shell-check-oci-ta:0.1@sha256:9b0138a597445f3887697da69c9b8b91368f0b72b98e9304fa209b43523bd6fb
- name: kind
value: task
resolver: bundles
Expand All @@ -470,7 +470,7 @@ spec:
- name: name
value: sast-shell-check-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-sast-shell-check-oci-ta:0.1@sha256:7553ec6925d0586b286502669b8e31a39dc73501f657426bac99019ac598d6ab
value: quay.io/konflux-ci/tekton-catalog/task-sast-shell-check-oci-ta:0.1@sha256:9b0138a597445f3887697da69c9b8b91368f0b72b98e9304fa209b43523bd6fb
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -498,7 +498,7 @@ spec:
- name: name
value: push-dockerfile-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:98ccae6ac132ab837fc51a70514be5fca656e09d6d4ad93230bd10f0119258aa
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:fcd9016f1cd5d1085b5e823cdf04a4e77ce80f67d0990af7853e70755aa25d54
- name: kind
value: task
resolver: bundles
Expand All @@ -515,7 +515,7 @@ spec:
- name: name
value: rpms-signature-scan
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:39cd56ffa26ff5edfd5bf9b61e902cae35a345c078cd9dcbc0737d30f3ce5ef1
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:3bf6d1bcd57af1095b06b4c489f965551364b1f1f72a807de9cab3c23142dca5
- name: kind
value: task
resolver: bundles
Expand Down
Loading

0 comments on commit eb33299

Please sign in to comment.