Skip to content

Zipper Sonar

Zipper Sonar #108

Workflow file for this run

name: Zipper Sonar
on:
create:
push:
paths:
- 'Zipper/**'
- '.github/workflows/Zipper_sonar.yml'
jobs:
sonar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Build
uses: docker/[email protected]
with:
context: ./Zipper
file: Zipper/sonarqube.Dockerfile
platforms: linux/amd64
push: false
tags: sonarqube
- name: Docker run
run: docker run --rm sonarqube gradle sonarqube -Dsonar.organization=osirix-foundation -Dsonar.branch.name=${{ steps.extract_branch.outputs.branch }} -Dsonar.projectKey=KheopsZipper -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} --no-daemon