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: The below pipeline configuration demonstrates simple usage:
```yaml ```yaml
code-analysis: steps
image: aosapps/drone-sonar-plugin - name: code-analysis
settings: image: aosapps/drone-sonar-plugin
sonar_host: settings:
from_secret: sonar_host sonar_host:
sonar_token: from_secret: sonar_host
from_secret: sonar_token sonar_token:
from_secret: sonar_token
``` ```
Customized parameters could be specified: Customized parameters could be specified:
```diff ```diff
code-analysis: steps
- name: code-analysis
image: aosapps/drone-sonar-plugin image: aosapps/drone-sonar-plugin
settings: settings:
sonar_host: sonar_host:

View File

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