Skip to content

Commit

Permalink
Update main_rajuapp-devops.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Raju00533 authored Apr 9, 2024
1 parent 98b29e2 commit d308448
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main_rajuapp-devops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: |
sonar-scanner \
-Dsonar.projectKey=my_project \
-Dsonar.sources=. \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN
docker run \
--rm \
-e SONAR_TOKEN=${{ secrets.SONAR_TOKEN }} \
-e SONAR_HOST_URL=${{ secrets.SONAR_HOST_URL }} \
-v "$(pwd):/usr/src" \
sonarsource/sonar-scanner-cli \
-Dsonar.projectKey=my_project \
-Dsonar.sources=.
- name: Build Docker image
run: docker build -t backend:latest .

Expand Down

0 comments on commit d308448

Please sign in to comment.