Skip to content

Commit 355bbc9

Browse files
committed
Fix Release Pipelie and Add Automation to update minor release version
1 parent e34f3c6 commit 355bbc9

File tree

8 files changed

+33
-132
lines changed

8 files changed

+33
-132
lines changed

.github/workflows/apply-konflux.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/generate-ci.yaml

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Sync Organization Labels
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
release:
6+
description: 'Select Release'
7+
required: false
8+
default: 'next'
9+
type: choice
10+
options:
11+
- next
12+
- "1.22"
13+
permissions:
14+
contents: read
15+
issues: write
16+
repository-projects: write
17+
jobs:
18+
sync:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repo
22+
uses: actions/checkout@v6
23+
- name: Update Version
24+
run: |
25+
./hack/sync-upstream-versions.sh
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+

config/downstream/repos/tekton-kueue.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ components:
55
- name: kueue
66
dockerfile: Dockerfile
77
prefetch-input: |
8-
{"type": "gomod", "path": "."}
8+
{"type": "gomod", "path": "upstream"}
99
tekton:
1010
watched-sources: '"***".pathChanged()'

config/downstream/repos/tektoncd-pipeline.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: tektoncd-pipeline
22
upstream: tektoncd/pipeline
3+
no-prefix-upstream: true
34
components:
45
- name: controller
56
- name: entrypoint

hack/sync-upstream-versions.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ for file in "$REPO_DIR"/*.yaml; do
2323
fi
2424

2525

26-
# TAG=$(gh release view --repo $upstream --json tagName -q .tagName)
27-
echo "Fetching Latest Release"
26+
echo "Fetching Latest Release for $upstream"
2827
if LATEST=$(gh release view --repo $upstream --json tagName -q .tagName 2>/dev/null); then
29-
echo "Latest release: $LATEST"
28+
echo "Latest release for $upstream : $LATEST"
3029
else
3130
echo "⚠ No releases found for $upstream"
3231
continue

internal/konflux/templates/tekton/component-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
value: {{.Dockerfile}}
4141
- name: additional-tags
4242
value:
43-
- "on-pr{{- .Version.Version}}"
43+
- "on-pr-{{- .Version.Version}}"
4444
- "on-pr-{{- .Application.Release.PatchVersion}}"
4545
- name: build-platforms
4646
value:

pipelines/release-pipeline.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ spec:
8787
- "true"
8888
runAfter:
8989
- publish-images
90-
- init
9190
taskSpec:
9291
stepTemplate:
9392
env:

0 commit comments

Comments
 (0)