Skip to content

Commit

Permalink
Enable konflux on all release-next branches (#197)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
pierDipi authored Aug 6, 2024
1 parent f15858d commit c4da4eb
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 9 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/release-generate-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,47 @@ jobs:
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/release.git" sync-serverless-ci:sync-serverless-ci -f
gh pr create --base master --head serverless-qe:sync-serverless-ci --fill-verbose || true
working-directory: ./src/github.com/openshift-knative/hack/openshift/release
- 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: '[eventing-istio - release-next] Create Konflux PR'
run: |
set -x
git remote add fork "https://github.com/serverless-qe/eventing-istio.git" || true # ignore: already exists errors
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/eventing-istio.git" sync-konflux/release-next:sync-konflux/release-next -f
gh pr create --base main --head serverless-qe:sync-konflux/release-next --title "[main] Add Konflux configurations" --body "Add Konflux components and pipelines" || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/eventing-istio
- 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: '[eventing-kafka-broker - release-next] Create Konflux PR'
run: |
set -x
git remote add fork "https://github.com/serverless-qe/eventing-kafka-broker.git" || true # ignore: already exists errors
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/eventing-kafka-broker.git" sync-konflux/release-next:sync-konflux/release-next -f
gh pr create --base main --head serverless-qe:sync-konflux/release-next --title "[main] Add Konflux configurations" --body "Add Konflux components and pipelines" || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/eventing-kafka-broker
- 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: '[eventing - release-next] Create Konflux PR'
run: |
set -x
git remote add fork "https://github.com/serverless-qe/eventing.git"
git remote add fork "https://github.com/serverless-qe/eventing.git" || true # ignore: already exists errors
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/eventing.git" sync-konflux/release-next:sync-konflux/release-next -f
gh pr create --base main --head serverless-qe:sync-konflux/release-next --title "[main] Add Konflux configurations" --body "Add Konflux components and pipelines" || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/eventing
- 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: '[eventing - release-v1.15] Create Konflux PR'
name: '[serving - release-next] Create Konflux PR'
run: |
set -x
git remote add fork "https://github.com/serverless-qe/eventing.git"
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/eventing.git" sync-konflux/release-v1.15:sync-konflux/release-v1.15 -f
gh pr create --base release-v1.15 --head serverless-qe:sync-konflux/release-v1.15 --title "[release-v1.15] Add Konflux configurations" --body "Add Konflux components and pipelines" || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/eventing
git remote add fork "https://github.com/serverless-qe/serving.git" || true # ignore: already exists errors
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/serving.git" sync-konflux/release-next:sync-konflux/release-next -f
gh pr create --base main --head serverless-qe:sync-konflux/release-next --title "[main] Add Konflux configurations" --body "Add Konflux components and pipelines" || true
working-directory: ./src/github.com/openshift-knative/hack/openshift-knative/serving
2 changes: 2 additions & 0 deletions config/eventing-istio.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
config:
branches:
release-next:
konflux:
enabled: true
openShiftVersions:
- version: "4.15"
- onDemand: true
Expand Down
2 changes: 2 additions & 0 deletions config/eventing-kafka-broker.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
config:
branches:
release-next:
konflux:
enabled: true
openShiftVersions:
- version: "4.15"
- onDemand: true
Expand Down
2 changes: 0 additions & 2 deletions config/eventing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ config:
- version: "4.15"
- version: "4.12"
release-v1.15:
konflux:
enabled: true
openShiftVersions:
- version: "4.15"
- version: "4.12"
Expand Down
2 changes: 2 additions & 0 deletions config/serving.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
config:
branches:
release-next:
konflux:
enabled: true
openShiftVersions:
- version: "4.15"
- onDemand: true
Expand Down
2 changes: 1 addition & 1 deletion pkg/action/update_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func UpdateAction(cfg Config) error {
},
"working-directory": fmt.Sprintf("./src/github.com/openshift-knative/hack/%s", r.RepositoryDirectory()),
"run": fmt.Sprintf(`set -x
git remote add fork "https://github.com/serverless-qe/%s.git"
git remote add fork "https://github.com/serverless-qe/%s.git" || true # ignore: already exists errors
git push "https://serverless-qe:${GH_TOKEN}@github.com/serverless-qe/%s.git" %s:%s -f
gh pr create --base %s --head %s --title "[%s] Add Konflux configurations" --body "Add Konflux components and pipelines" || true
`,
Expand Down

0 comments on commit c4da4eb

Please sign in to comment.