Skip to content

Commit d1f2829

Browse files
Merge branch 'main' into add-marketplace-wrapper
2 parents 0c4d778 + d1caf62 commit d1f2829

File tree

7 files changed

+27
-110
lines changed

7 files changed

+27
-110
lines changed

Diff for: .github/actions/docker-build/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Janus IDP Authors
1+
# Copyright Red Hat, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

Diff for: .github/workflows/next-build-image.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Janus IDP Authors
1+
# Copyright Red Hat, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -55,9 +55,9 @@ jobs:
5555
uses: ./.github/actions/docker-build
5656
with:
5757
registry: ${{ env.REGISTRY }}
58-
username: ${{ vars.QUAY_USERNAME }}
58+
username: ${{ secrets.QUAY_USERNAME }}
5959
password: ${{ secrets.QUAY_TOKEN }}
60-
imageName: ${{ github.repository }}
60+
imageName: rhdh-community/rhdh
6161
imageTags: |
6262
type=raw,value=next
6363
type=sha,prefix=next-

Diff for: .github/workflows/pr-build-image.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Janus IDP Authors
1+
# Copyright Red Hat, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Get the latest commits from base branch
4747
run: |
48-
git remote add base-origin https://github.com/janus-idp/backstage-showcase || true
48+
git remote add base-origin https://github.com/${{ github.repository }} || true
4949
git config user.name "${{ github.event.pull_request.user.login }}"
5050
git config user.email "${{ github.event.pull_request.user.email }}"
5151
echo "Updating PR with latest commits from ${{ github.event.pull_request.base.ref }} ..."
@@ -67,9 +67,9 @@ jobs:
6767
uses: ./.github/actions/docker-build
6868
with:
6969
registry: ${{ env.REGISTRY }}
70-
username: ${{ vars.QUAY_USERNAME }}
70+
username: ${{ secrets.QUAY_USERNAME }}
7171
password: ${{ secrets.QUAY_TOKEN }}
72-
imageName: ${{ github.repository }}
72+
imageName: rhdh-community/rhdh
7373
imageTags: |
7474
type=ref,prefix=pr-,event=pr
7575
type=ref,prefix=pr-,suffix=-${{ env.SHORT_SHA }},event=pr
@@ -85,5 +85,5 @@ jobs:
8585
issue_number: context.issue.number,
8686
owner: context.repo.owner,
8787
repo: context.repo.repo,
88-
body: 'The image is available at:\n* [`quay.io/${{ github.repository }}:pr-${{ github.event.number }}`](https://quay.io/${{ github.repository }}:pr-${{ github.event.number }}) or\n* [`quay.io/${{ github.repository }}:pr-${{ github.event.number }}-${{ env.SHORT_SHA }}`](https://quay.io/${{ github.repository }}:pr-${{ github.event.number }}-${{ env.SHORT_SHA }})'
88+
body: 'The image is available at:\n* [`quay.io/rhdh-community/rhdh:pr-${{ github.event.number }}`](https://quay.io/rhdh-community/rhdh:pr-${{ github.event.number }}) or\n* [`quay.io/rhdh-community/rhdh:pr-${{ github.event.number }}-${{ env.SHORT_SHA }}`](https://quay.io/rhdh-community/rhdh:pr-${{ github.event.number }}-${{ env.SHORT_SHA }})'
8989
})

Diff for: .github/workflows/techdocs.yaml

-80
This file was deleted.

Diff for: .github/workflows/update-backstage.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The Janus IDP Authors
1+
# Copyright Red Hat, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -46,8 +46,8 @@ jobs:
4646
id: generate-token
4747
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
4848
with:
49-
app-id: ${{ vars.JANUS_IDP_GITHUB_APP_ID }}
50-
private-key: ${{ secrets.JANUS_IDP_GITHUB_APP_PRIVATE_KEY }}
49+
app-id: ${{ secrets.RHDH_GITHUB_APP_ID }}
50+
private-key: ${{ secrets.RHDH_GITHUB_APP_PRIVATE_KEY }}
5151

5252
- name: Checkout
5353
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

Diff for: .github/workflows/versioned-build-image.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Janus IDP Authors
1+
# Copyright 2023-2025 The RHDH Authors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# on push of a tag, trigger a container build for that tag and push to http://quay.io/janus-idp/backstage-showcase
15+
# on push of a tag, trigger a container build for that tag and push to http://quay.io/rhdh-community/rhdh
1616
name: Versioned
1717

1818
on:
@@ -57,9 +57,9 @@ jobs:
5757
uses: ./.github/actions/docker-build
5858
with:
5959
registry: ${{ env.REGISTRY }}
60-
username: ${{ vars.QUAY_USERNAME }}
60+
username: ${{ secrets.QUAY_USERNAME }}
6161
password: ${{ secrets.QUAY_TOKEN }}
62-
imageName: ${{ github.repository }}
62+
imageName: rhdh-community/rhdh
6363
imageTags: |
6464
type=raw,value=latest,enable=${{ env.is_latest }}
6565
type=semver,pattern={{version}}

Diff for: .ibm/pipelines/utils.sh

+11-14
Original file line numberDiff line numberDiff line change
@@ -107,33 +107,30 @@ droute_send() {
107107
local max_attempts=5
108108
local wait_seconds=1
109109
for ((i = 1; i <= max_attempts; i++)); do
110+
echo "Attempt ${i} of ${max_attempts} to send test results through Data Router."
110111
if output=$(oc exec -n "${droute_project}" "${droute_pod_name}" -- /bin/bash -c "
111112
/tmp/droute-linux-amd64 send --metadata ${temp_droute}/${metadata_output} \
112113
--url '${DATA_ROUTER_URL}' \
113114
--username '${DATA_ROUTER_USERNAME}' \
114115
--password '${DATA_ROUTER_PASSWORD}' \
115116
--results '${temp_droute}/${JUNIT_RESULTS}' \
116-
--verbose" 2>&1) &&
117-
DATA_ROUTER_REQUEST_ID=$(echo "$output" | grep "request:" | awk '{print $2}') &&
118-
[ -n "$DATA_ROUTER_REQUEST_ID" ]; then
119-
120-
echo "Test results successfully sent through Data Router."
121-
echo "Request ID: $DATA_ROUTER_REQUEST_ID"
122-
return 0
117+
--verbose" 2>&1); then
118+
if DATA_ROUTER_REQUEST_ID=$(echo "$output" | grep "request:" | awk '{print $2}') &&
119+
[ -n "$DATA_ROUTER_REQUEST_ID" ]; then
120+
echo "Test results successfully sent through Data Router."
121+
echo "Request ID: $DATA_ROUTER_REQUEST_ID"
122+
break
123+
fi
123124
fi
124125

125-
if ((i <= max_attempts)); then
126-
echo "Attempt ${i} of ${max_attempts}: Error sending test results through Data Router."
127-
echo "Error details: $output"
128-
sleep "${wait_seconds}"
129-
else
126+
if ((i == max_attempts)); then
130127
echo "Failed to send test results after ${max_attempts} attempts."
131-
echo "Last error: $output"
128+
echo "Last Data Router error details:"
129+
echo "${output}"
132130
echo "Troubleshooting steps:"
133131
echo "1. Restart $droute_pod_name in $droute_project project/namespace"
134132
echo "2. Check the Data Router documentation: https://spaces.redhat.com/pages/viewpage.action?pageId=115488042"
135133
echo "3. Ask for help at Slack: #forum-dno-datarouter"
136-
return 1
137134
fi
138135
done
139136

0 commit comments

Comments
 (0)