-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.drone.yml
66 lines (64 loc) · 1.38 KB
/
.drone.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
kind: pipeline
name: linux-amd64-sonarqube-scanner
type: vm
platform:
os: linux
arch: amd64
pool:
use: ubuntu
steps:
- name: pr test java
image: plugins/docker:20
settings:
daemon_off: false
dockerfile: Dockerfile
repo: plugins/sonarqube-scanner
dry_run: true
when:
ref:
- "refs/pull/**" # Only run for pull requests
- name: publish-2.4.2
image: plugins/docker:20
settings:
# auto_tag: true
# auto_tag_suffix: v2.0.2-java17
tags:
- v2.4.2
- latest
- stable-java17
daemon_off: false
dockerfile: Dockerfile
password:
from_secret: docker_password
repo: plugins/sonarqube-scanner
username:
from_secret: docker_username
when:
ref:
- refs/heads/main
- refs/tags/**
- name: publish-2.4.2-java11
image: plugins/docker:20
settings:
# auto_tag: true
# auto_tag_suffix: v2.0.2-java17
tags:
- v2.4.2
- latest-java11
- stable-java11
daemon_off: false
dockerfile: Dockerfile_Deprecated
password:
from_secret: docker_password
repo: plugins/sonarqube-scanner
username:
from_secret: docker_username
when:
ref:
- refs/heads/main
- refs/tags/**
trigger:
ref:
- refs/heads/main
- "refs/tags/**"
- "refs/pull/**"