-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrone.yml
100 lines (86 loc) · 1.52 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
kind: pipeline
type: docker
name: argos-frontend-build
platform:
os: linux
arch: amd64
steps:
- name: license-check
image: maven:3.6.3
commands:
- mvn license:check
volumes:
- name: mvn_cache
path: /root/.m2/repository
- name: test and install
image: node:15.0.1
commands:
- npm install
- npm test
- npm run build
depends_on:
- license-check
- name: build and release front-end image
image: plugins/docker
settings:
build_args:
- VERSION=${DRONE_TAG:-${DRONE_BRANCH//\//_}}
password:
from_secret: docker_login_token
repo: argosnotary/argos-frontend
tags: ${DRONE_TAG:-${DRONE_BRANCH//\//_}}
username:
from_secret: docker_login_user
when:
event:
- push
- tag
ref:
- refs/heads/master
- refs/heads/release/*
depends_on:
- test and install
- name: slack on success
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
depends_on:
- test and install
- build and release front-end image
volumes:
- name: mvn_cache
host:
path: /datadisk/mvn
trigger:
event:
- push
- tag
- pull_request
---
kind: pipeline
type: docker
name: report result
platform:
os: linux
arch: amd64
steps:
- name: slack on failure
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
trigger:
status:
- failure
event:
- push
- tag
- pull_request
depends_on:
- argos-frontend-build
---
kind: signature
hmac: b0ef1110c37515d1c9f0ac20dca8d7626c86fa3b2edebf080412de3e0585c221
...