Skip to content

Commit 2ec0272

Browse files
committed
ci(.drone.yml): use container-args jsonnet template
1 parent c272843 commit 2ec0272

File tree

1 file changed

+6
-45
lines changed

1 file changed

+6
-45
lines changed

.drone.yml

Lines changed: 6 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,8 @@
11
# Drone CI File!
22

3-
kind: pipeline
4-
type: kubernetes
5-
name: default
6-
7-
metadata:
8-
namespace: builds
9-
10-
node_selector:
11-
doks.digitalocean.com/node-pool: josa-cloud-np
12-
13-
steps:
14-
- name: build
15-
image: plugins/docker
16-
settings:
17-
repo: josaorg/contributions-web
18-
build_args:
19-
[
20-
CONTRIBUTIONS_API_URL=https://contributions.api.dev.josa.ngo,
21-
MATOMO_SITE_ID=11,
22-
TARGET_ENV=development
23-
]
24-
build_args_from_env:
25-
[
26-
DRONE_BUILD_NUMBER,
27-
DRONE_BUILD_LINK,
28-
DRONE_COMMIT_SHA,
29-
DRONE_COMMIT_LINK,
30-
DRONE_REPO_LINK,
31-
DRONE_BUILD_FINISHED,
32-
]
33-
tags:
34-
- ${DRONE_COMMIT_SHA}
35-
- latest
36-
username:
37-
from_secret: docker_username
38-
password:
39-
from_secret: docker_password
40-
- name: notify
41-
image: plugins/slack
42-
settings:
43-
webhook:
44-
from_secret: slack_webhook
45-
channel: heartbeat
46-
depends_on:
47-
- build
3+
kind: template
4+
load: container-args.jsonnet
5+
data:
6+
repositoryName: josaorg/contributions-web
7+
releaseName: contributions-web
8+
buildArgs: CONTRIBUTIONS_API_URL=https://contributions.api.dev.josa.ngo, MATOMO_SITE_ID=11, TARGET_ENV=development

0 commit comments

Comments
 (0)