Skip to content

Commit fdf0300

Browse files
openshift-pipelines-botpramodbindal
authored andcommitted
[bot:release-v1.22.x] update konflux configuration
Generated by workflow [Generate konflux configurations](https://github.com/openshift-pipelines/hack/actions/runs/22086275163) Triggered by pramodbindal
1 parent f6e037c commit fdf0300

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

.github/workflows/auto-merge-upstream.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
jobs:
88
auto-approve-and-merge:
9+
# This line prevents the job from running if CodeFreeze is true
10+
if: false
911
runs-on: ubuntu-latest
1012
permissions:
1113
pull-requests: write
@@ -19,35 +21,43 @@ jobs:
1921
gh auth status
2022
git config user.name openshift-pipelines-bot
2123
git config user.email pipelines-extcomm@redhat.com
22-
# Approve and merge pull-request with no reviews
2324
2425
pr_list=$(gh pr list \
2526
--state open \
27+
--base release-v1.22.x \
28+
--search 'label:upstream -label:do-not-merge/hold' \
29+
--json number \
30+
--jq '.[]|.number')
31+
32+
success_pr_list=$(gh pr list \
33+
--state open \
34+
--base release-v1.22.x \
2635
--search 'label:upstream -label:do-not-merge/hold' \
2736
--json number,title,statusCheckRollup \
2837
--jq ' .[]| select((.statusCheckRollup // [])| all(.conclusion == "SUCCESS" or .conclusion == "SKIPPED"))| "\(.number)"')
2938
3039
echo "pr_list=$pr_list" >> "$GITHUB_OUTPUT"
40+
echo "success_pr_list=$success_pr_list" >> "$GITHUB_OUTPUT"
3141
env:
3242
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3343

34-
- name: add LGTM Label
44+
- name: Approve and add LGTM Label
3545
run: |
3646
# Approve and merge pull-request with no reviews
3747
for p in $pr_list; do
3848
echo "Adding lgtm label to PR $p"
39-
gh pr edit $p --add-label "lgtm" || true
49+
gh pr edit $p --add-label "lgtm" --add-label "approved" || true
4050
done
4151
env:
4252
pr_list: ${{ steps.list-prs.outputs.pr_list }}
4353
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4454
- name: Merging PRs
4555
run: |
4656
# Approve and merge pull-request with no reviews
47-
for p in $pr_list; do
57+
for p in $success_pr_list; do
4858
echo "Merging PR $p"
4959
gh pr merge --rebase --delete-branch --auto $p
5060
done
5161
env:
52-
pr_list: ${{ steps.list-prs.outputs.pr_list }}
62+
success_pr_list: ${{ steps.list-prs.outputs.success_pr_list }}
5363
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}

.konflux/dockerfiles/tkn.Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ ARG VERSION=tkn-next
3131
COPY --from=builder /tmp/tkn /usr/bin
3232
COPY --from=builder /tmp/tkn-pac /usr/bin
3333
LABEL \
34-
com.redhat.component="openshift-pipelines-cli-tkn-container" \
35-
name="openshift-pipelines/pipelines-cli-tkn-rhel9" \
36-
version=$VERSION \
37-
summary="Red Hat OpenShift pipelines tkn CLI" \
38-
description="CLI client 'tkn' for managing openshift pipelines" \
39-
io.k8s.display-name="Red Hat OpenShift Pipelines tkn CLI" \
34+
com.redhat.component="openshift-pipelines-cli-tkn-rhel9-container" \
35+
cpe="cpe:/a:redhat:openshift_pipelines:1.22::el9" \
36+
description="Red Hat OpenShift Pipelines tektoncd-cli tkn" \
37+
io.k8s.description="Red Hat OpenShift Pipelines tektoncd-cli tkn" \
38+
io.k8s.display-name="Red Hat OpenShift Pipelines tektoncd-cli tkn" \
39+
io.openshift.tags="tekton,openshift,tektoncd-cli,tkn" \
4040
maintainer="pipelines-extcomm@redhat.com" \
41-
io.k8s.description="Red Hat OpenShift Pipelines tkn CLI" \
42-
io.openshift.tags="pipelines,tekton,openshift"
41+
name="openshift-pipelines/pipelines-cli-tkn-rhel9" \
42+
summary="Red Hat OpenShift Pipelines tektoncd-cli tkn" \
43+
version="v1.22.0"
4344

4445
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot
4546
USER 65532

0 commit comments

Comments
 (0)