-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.yml
47 lines (43 loc) · 981 Bytes
/
.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
# Drone CI File!
kind: pipeline
type: kubernetes
name: default
metadata:
namespace: builds
node_selector:
doks.digitalocean.com/node-pool: josa-cloud-np
steps:
- name: build
image: plugins/docker
settings:
repo: josaorg/contributions-web
build_args:
[
CONTRIBUTIONS_API_URL=https://contributions.api.prod.josa.ngo,
MATOMO_SITE_ID=10,
TARGET_ENV=production
]
build_args_from_env:
[
DRONE_BUILD_NUMBER,
DRONE_BUILD_LINK,
DRONE_COMMIT_SHA,
DRONE_COMMIT_LINK,
DRONE_REPO_LINK,
DRONE_BUILD_FINISHED,
]
tags:
- ${DRONE_COMMIT_SHA}
- stable
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: notify
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
channel: heartbeat
depends_on:
- build