update yaml format

This commit is contained in:
Rogan 2019-02-17 11:10:46 +08:00
parent 4e7f76260b
commit d2afbb890a
2 changed files with 18 additions and 16 deletions

18
DOCS.md
View File

@ -13,19 +13,21 @@ This plugin can scan your code quality and post the analysis report to your Sona
The below pipeline configuration demonstrates simple usage:
```yaml
code-analysis:
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
steps
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
```
Customized parameters could be specified:
```diff
code-analysis:
steps
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:

View File

@ -23,12 +23,12 @@ docker run --rm \
### Pipeline example
```yaml
code-analysis:
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
steps
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
```