Skip to content

Commit

Permalink
Adding Sonar Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanvicente committed Feb 7, 2024
1 parent 195666c commit cfb083e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test_upload_image.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@ on:
- workflow

jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

docker:
needs: sonarcloud
runs-on: ubuntu-latest
steps:
-
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM nginx:stable-alpine
COPY nginx_conf/nginx.conf /etc/nginx/nginx.conf
#COPY ita-challenges-frontend/* /usr/share/nginx/html/
ADD ["dist/ita-challenges-frontend/*", "/usr/share/nginx/html/"]

EXPOSE 80
Expand Down
2 changes: 1 addition & 1 deletion conf/.env.CI.dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MICROSERVICE_DEPLOY=ita-challenges-frontend
MICROSERVICE_VERSION=1.0.2-RELEASE
MICROSERVICE_VERSION=1.0.3-RELEASE

0 comments on commit cfb083e

Please sign in to comment.