fix: Sonarqube gradle/jdk version #236
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Authorization Sonar | |
on: | |
create: | |
push: | |
paths: | |
- 'Authorization/**' | |
- '.github/workflows/Authorization_sonar.yml' | |
jobs: | |
sonar: | |
if: startsWith(github.ref , 'refs/heads/') | |
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: ./Authorization | |
file: Authorization/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=KheopsAuthorization -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} --no-daemon |