-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 1.1 KB
/
build.yml
File metadata and controls
37 lines (33 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Chris Test
# This workflow runs if helm changes were made to either a values file or a chart template change.
on:
workflow_dispatch:
jobs:
RunBuild:
runs-on: ubuntu-latest
name: Run Build
steps:
- name: Obtain code from git
uses: actions/checkout@v2
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
with:
# token: ${{ secrets.SONAR_TOKEN }}
# projectName: CloudOps
# projectKey: CloudOps
# url: ${{ secrets.SONAR_HOST_URL }}
projectBaseDir: PassBox
args: >
-Dsonar.java.binaries=build/classes
-Dsonar.verbose=true
-Dsonar.scm.disabled=true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: SonarQube Quality Gate check
id: sonarqube-quality-gate-check
uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}