Skip to content

Commit

Permalink
add sonarqube scan
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gilber committed Oct 26, 2023
1 parent 186bb86 commit d827950
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,26 @@ jobs:
uses: ./.github/workflows/lint.yml # Workflow calls need to be executed as jobs
with:
yaml: true
sonarqube-scan:
runs-on: ubuntu-latest
steps:
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io/
build:
needs: lint
needs: sonarqube-scan
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3 # https://github.com/marketplace/actions/docker-setup-qemu
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3 # https://github.com/marketplace/actions/docker-setup-buildx
- name: Build container image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5 # https://github.com/marketplace/actions/build-and-push-docker-images
with:
context: .
file: Containerfile
Expand Down

0 comments on commit d827950

Please sign in to comment.