Skip to content

Update sonar.yaml

Update sonar.yaml #6

Workflow file for this run

name: Build
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: NPM Install
run: npm install # Add your specific npm install command
- name: docker install and push
run: |
docker build -t tic-tac-toe
docker tag tic-tac-toe ajayreddy1122/tic-tac-toe:latest
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{secrets.DOCKERHUB_TOKEN}}
docker push ajayreddy1122/tic-tac-toe:latest
env:
DOCKER_CLI_ACI: 1