Skip to content

Commit

Permalink
Use dummy password to access gitea. qshift
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Jun 5, 2024
1 parent 9c073e0 commit 87b638f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/backstage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ jobs:
GITEA_USERNAME=$(kubectl get secret/gitea-credential -n gitea -ojson | jq -r '.data.username' | base64 -d)
GITEA_URL=$(kubectl get ingress/my-gitea -n gitea -ojson | jq -r '.spec.rules[0].host')
echo "GITEA_URL=$GITEA_URL" >> "$GITHUB_ENV"
echo "GITEA_PASSWORD=$GITEA_PASSWORD" >> "$GITHUB_ENV"
# TODO: To be fixed using new idpbuilder release
# echo "GITEA_PASSWORD=$GITEA_PASSWORD" >> "$GITHUB_ENV"
echo "GITEA_PASSWORD=123456789" >> "$GITHUB_ENV"
echo "GITEA_USERNAME=$GITEA_USERNAME" >> "$GITHUB_ENV"
ARGO_PASSWORD=$(kubectl get secret/argocd-initial-admin-secret -n argocd -ojson | jq -r '.data.password' | base64 -d)
Expand Down Expand Up @@ -155,10 +159,9 @@ jobs:
- name: Check backstage resources
run: |
curl -s 'http://localhost:7007/api/catalog/entities?filter=kind%3Dlocation' \
echo "Show the locations"
curl "http://localhost:7007/api/catalog/entities?filter=kind=location" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $BACKSTAGE_AUTH_SECRET" \
-H 'Referer: http://localhost:3000/' \
-H 'Origin: http://localhost:3000' \
--compressed \
| jq -r

0 comments on commit 87b638f

Please sign in to comment.