Updated README
This commit is contained in:
40
README.md
40
README.md
@ -1,30 +1,21 @@
|
|||||||
# Qodana JVM Community Drone plugin
|
# Terraform Drone plugin
|
||||||
|
|
||||||
[](https://github.com/2martens/qodana-jvm-community-drone-plugin/blob/master/LICENSE)
|
[](https://github.com/2martens/terraform-drone-plugin/blob/main/LICENSE)
|
||||||
[](https://hub.docker.com/r/2martens/qodana-jvm-community-drone-plugin)
|
[](https://hub.docker.com/r/2martens/terraform-drone-plugin)
|
||||||
|
|
||||||
This Drone plugin uses the Qodana JVM Community linter and makes it compatible with Drone.
|
This Drone plugin uses the Terraform CLI and makes it compatible with Drone.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Step name
|
- name: Step name
|
||||||
image: 2martens/qodana-jvm-community-drone-plugin
|
image: 2martens/terraform-drone-plugin
|
||||||
settings:
|
settings:
|
||||||
qodana_token: <qodana-cloud-token>
|
|
||||||
args: <args>
|
args: <args>
|
||||||
```
|
```
|
||||||
|
|
||||||
To use the quality gate feature, add `--fail-threshold <number>` to the args setting.
|
|
||||||
|
|
||||||
To use baseline feature, add `--baseline qodana.sarif.json` to the args setting.
|
|
||||||
This file has to be checked-in to the root of your project.
|
|
||||||
|
|
||||||
# Example pipeline
|
# Example pipeline
|
||||||
|
|
||||||
This example pipeline uses host volumes and has to be trusted. The Qodana docker stores the cache
|
|
||||||
under /data/cache in the container and this pipeline makes sure that this cache is stored on the
|
|
||||||
host instead.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -39,19 +30,14 @@ clone:
|
|||||||
skip_verify: true
|
skip_verify: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: run code analysis
|
- name: login to Terraform cloud
|
||||||
pull: always
|
pull: always
|
||||||
image: 2martens/qodana-jvm-community-drone-plugin:2023.2
|
image: 2martens/terraform-drone-plugin:1.26.2
|
||||||
settings:
|
settings:
|
||||||
qodana_token:
|
args: login
|
||||||
from_secret: qodana_token
|
- name: run plan
|
||||||
args: --baseline qodana.sarif.json --fail-threshold 0
|
pull: always
|
||||||
volumes:
|
image: 2martens/terraform-drone-plugin:1.26.2
|
||||||
- name: cache
|
settings:
|
||||||
path: /data/cache
|
args: plan
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /var/lib/drone/cache
|
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user