Taking out PR comment for now to focus on testing and deployment.
This commit is contained in:
+26
-33
@@ -50,27 +50,27 @@ jobs:
|
|||||||
# params: '{{ "projectKey", "${{ gitea.repository.name }}" }}'
|
# params: '{{ "projectKey", "${{ gitea.repository.name }}" }}'
|
||||||
# log-response: true
|
# log-response: true
|
||||||
|
|
||||||
- name: Comment on PR with SonarQube Status
|
# - name: Comment on PR with SonarQube Status
|
||||||
uses: prasiman/gocurl@v1
|
# uses: prasiman/gocurl@v1
|
||||||
with:
|
# with:
|
||||||
method: POST
|
# method: POST
|
||||||
url: ${{ secrets.RINOA_GITEA_SERVER }}/api/v1/repos/${{ gitea.repository.owner.login }}/${{ gitea.repository.name }}/pulls/${{ gitea.pull_request.id }}/reviews
|
# url: ${{ secrets.RINOA_GITEA_SERVER }}/api/v1/repos/${{ gitea.repository.owner.login }}/${{ gitea.repository.name }}/pulls/${{ gitea.pull_request.id }}/reviews
|
||||||
headers: |
|
# headers: |
|
||||||
Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}
|
# Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
Content-Type: application/json
|
# Content-Type: application/json
|
||||||
body: >
|
# body: >
|
||||||
{
|
# {
|
||||||
"body": "SonarQube Quality Gate Status",
|
# "body": "SonarQube Quality Gate Status",
|
||||||
"comments": [
|
# "comments": [
|
||||||
{
|
# {
|
||||||
"body": "${{ steps.quality-gate.outputs.quality-gate-status }}",
|
# "body": "${{ steps.quality-gate.outputs.quality-gate-status }}",
|
||||||
"new_position": 0,
|
# "new_position": 0,
|
||||||
"old_position": 0
|
# "old_position": 0
|
||||||
}
|
# }
|
||||||
],
|
# ],
|
||||||
"commit_id": "${{ gitea.pull_request.head.sha }}",
|
# "commit_id": "${{ gitea.pull_request.head.sha }}",
|
||||||
"event": "COMMENT"
|
# "event": "COMMENT"
|
||||||
}
|
# }
|
||||||
|
|
||||||
|
|
||||||
# - name: SonarQube Pull Request Comment
|
# - name: SonarQube Pull Request Comment
|
||||||
@@ -102,15 +102,8 @@ jobs:
|
|||||||
# echo ${{ steps.fetch-status.outputs.body }} | jq -e '.statuses[] | select(.creator.login == "gitea-sonarqube-bot" and .status == "success")' || exit 1
|
# echo ${{ steps.fetch-status.outputs.body }} | jq -e '.statuses[] | select(.creator.login == "gitea-sonarqube-bot" and .status == "success")' || exit 1
|
||||||
# echo "SonarQube bot status validation successful."
|
# echo "SonarQube bot status validation successful."
|
||||||
|
|
||||||
# dry-run:
|
dry-run:
|
||||||
# name: Dry Run Docker Compose
|
- name: Tests
|
||||||
# runs-on: self-hosted
|
uses: cloudposse/github-action-docker-compose-test-run@main
|
||||||
# needs: status-check
|
with:
|
||||||
# steps:
|
file: rinoa-docker-compose.yml
|
||||||
# - name: Checkout Code
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# - name: Validate Docker Compose
|
|
||||||
# run: |
|
|
||||||
# echo "Validating Docker Compose configuration..."
|
|
||||||
# docker compose config -f rinoa-docker-compose.yml
|
|
||||||
# echo "Docker Compose validation successful."
|
|
||||||
Reference in New Issue
Block a user