diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml new file mode 100644 index 0000000..c8dec42 --- /dev/null +++ b/.gitea/workflows/sonarqube.yml @@ -0,0 +1,23 @@ +name: SonarQube Analysis + +on: + push: + branches: + - main + +jobs: + sonar: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run SonarScanner + run: | + docker run --rm \ + --network dev-platform_default \ + -e SONAR_HOST_URL="${{ vars.SONAR_HOST_URL }}" \ + -e SONAR_TOKEN="${{ secrets.SONAR_TOKEN }}" \ + -v "$PWD:/usr/src" \ + sonarsource/sonar-scanner-cli