From 8f1e82e2bfb16b9f03ef6b922e23b467bbbc0b7d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Sep 2024 13:06:10 +0200 Subject: [PATCH] add dhcp servers --- .gitea/project.properties | 5 ---- .gitea/workflows/sonarqube.yml | 42 +++++++++++++++------------------- 2 files changed, 19 insertions(+), 28 deletions(-) delete mode 100644 .gitea/project.properties diff --git a/.gitea/project.properties b/.gitea/project.properties deleted file mode 100644 index c5cd4c9..0000000 --- a/.gitea/project.properties +++ /dev/null @@ -1,5 +0,0 @@ -sonar.projectKey=sqp_6999f73c459923e45f140e7e46f9768b2c1ad9da - -# relative paths to source directories. More details and properties are described -# at https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/ -sonar.sources=. \ No newline at end of file diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index 539865e..1268e15 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -1,31 +1,27 @@ +name: Build + on: push: branches: - main - # pull_request: - # types: [opened, synchronize, reopened] -name: SonarQube Scan + jobs: - sonarqube: - name: SonarQube Trigger + build: + name: Build and analyze runs-on: ubuntu-latest + steps: - # - run: apk add --no-cache nodejs docker - - name: Checking out - uses: actions/checkout@v4 - with: - # Disabling shallow clone is recommended for improving relevancy of reporting - fetch-depth: 0 - - uses: actions/setup-java@v4 - with: - distribution: 'temurin' # See 'Supported distributions' for available options - java-version: '21' - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@v2.1.0 - env: - SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} -# with: -# host: ${{ secrets.SONARQUBE_HOST }} -# login: ${{ secrets.SONARQUBE_TOKEN }} \ No newline at end of file + - uses: actions/checkout@v4 + 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 }} + # If you wish to fail your job when the Quality Gate is red, uncomment the + # following lines. This would typically be used to fail a deployment. + # - uses: sonarsource/sonarqube-quality-gate-action@master + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file