-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone-v1.yml
87 lines (81 loc) · 1.97 KB
/
.drone-v1.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
kind: pipeline
name: default
type: kubernetes
platform:
os: linux
arch: amd64
steps:
- name: build
pull: if-not-exists
image: quay.io/ukhomeofficedigital/scala-sbt-nodejs:v1.4.0-debian12-jdk17-node20
commands:
- /root/entrypoint.sh
- sbt test +publish docker:stage
environment:
ARTIFACTORY_PASSWORD:
from_secret: ARTIFACTORY_PASSWORD
ARTIFACTORY_USERNAME: drt-artifactory-robot
when:
event:
- push
- name: publish
image: plugins/ecr
environment:
AWS_REGION: eu-west-2
settings:
access_key:
from_secret: AWS_ACCESS_KEY_ID
secret_key:
from_secret: AWS_SECRET_ACCESS_KEY
repo: drt/drt-cirium
registry: 340268328991.dkr.ecr.eu-west-2.amazonaws.com
tags:
- B${DRONE_BUILD_NUMBER}
- latest
when:
event:
- push
depends_on:
- build
- name: analysis
pull: if-not-exists
image: quay.io/ukhomeofficedigital/scala-sbt-nodejs:v1.4.0-debian12-jdk17-node20
commands:
- /root/entrypoint.sh
- sbt -ivy ./.ivy2 dependencyCheck
- sbt -ivy ./.ivy2 -mem 4096 -J-XX:+UseG1GC coverage test coverageReport
- sbt scalastyle | true
- sbt scapegoat | true
environment:
NVD_BASE_URL: http://nvdmirror:8008
ARTIFACTORY_PASSWORD:
from_secret: ARTIFACTORY_PASSWORD
ARTIFACTORY_USERNAME: drt-artifactory-robot
ENV_LOG_LEVEL: ERROR
when:
branch: master
event:
- push
depends_on:
- build
- name: sonar-scanner
pull: if-not-exists
image: quay.io/ukhomeofficedigital/sonar-scanner:v4.6
commands:
- sonar-scanner -Dsonar.projectVersion=B${DRONE_BUILD_NUMBER}
environment:
DRONE_BUILD_NUMBER: ${DRONE_BUILD_NUMBER}
when:
branch:
- ${DRONE_BRANCH}
event:
- push
depends_on:
- analysis
services:
- name: nvdmirror
image: sspringett/nvdmirror
ports:
- 8008
...