-
Notifications
You must be signed in to change notification settings - Fork 9
/
.drone.yml
83 lines (73 loc) · 1.49 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
kind: pipeline
name: nfs-ganesha
environment:
APP_VER: 4.0.12
APP_VER_BUILD: "${DRONE_BUILD_NUMBER}"
APP_BUILD_COMMIT: "${DRONE_COMMIT_SHA:0:7}"
APP_BUILD_DATE: "${DRONE_BUILD_FINISHED}"
trigger:
event:
- tag
platform:
os: linux
arch: amd64
#concurrency:
# limit: 1
workspace:
base: /drone
path: src
volumes:
- name: cache
host:
path: /var/cache/drone/${DRONE_REPO}/${DRONE_STAGE_NAME}
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- /drone/docker
- name: build-publish
image: plugins/docker
settings:
repo: izdock/nfs-ganesha
storage_path: /drone/docker
build_args_from_env:
- IMAGE_FROM
- APP_VER
- APP_VER_BUILD
- APP_BUILD_COMMIT
- APP_BUILD_DATE
- MULTISERVICE
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_TAG%.*}
- ${DRONE_TAG%%.*}
- ${DRONE_TAG}-${DRONE_BUILD_NUMBER}
#- ${DRONE_COMMIT_SHA:0:7}
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- /drone/docker
- name: notify
image: plugins/matrix
settings:
homeserver: https://quantico.in
roomid: UCuIdxzWsiiboEXriU:quantico.in
username:
from_secret: MATRIX_USERNAME
password:
from_secret: MATRIX_PASSWORD