Add environment configuration for build job
This commit is contained in:
parent
12da5b2f4f
commit
2580b8ecdc
|
|
@ -7,7 +7,9 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: build-pr
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -66,10 +68,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
|
||||||
SONAR_PULL_REQUEST_KEY: ${{ github.event.pull_request.number }}
|
|
||||||
SONAR_PULL_REQUEST_BRANCH: ${{ github.head_ref }}
|
|
||||||
SONAR_PULL_REQUEST_BASE: ${{ github.base_ref }}
|
|
||||||
with:
|
with:
|
||||||
args: >
|
args: >
|
||||||
-Dsonar.projectVersion=${{ steps.get_version.outputs.tag }}
|
-Dsonar.projectVersion=${{ steps.get_version.outputs.tag }}
|
||||||
|
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
|
||||||
|
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
|
||||||
|
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue