This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
77 lines (69 loc) · 1.65 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
kind: pipeline
type: kubernetes
name: test
trigger:
event:
- push
image_pull_secrets:
- DOCKER_CONFIG_JSON
steps:
- name: build-test
image: harbor.devops.indico.io/indico/drone-builder
settings:
username:
from_secret: harbor_username
password:
from_secret: harbor_password
registry: harbor.devops.indico.io
repo: harbor.devops.indico.io/indico/virga_testsuite
tags:
- ${DRONE_COMMIT_SHA}.unittest
squash: true
experimental: true
environment:
DOCKER_BUILDKIT: 1
- name: celery-redis
image: redis:alpine
detach: true
- name: test-db
image: postgres:12-alpine
detach: true
environment:
POSTGRES_DB: indico
POSTGRES_USER: indico
POSTGRES_PASSWORD: development
- name: noct
image: harbor.devops.indico.io/indico/noct:development.e5c575c706114a923e3223f6d5246a770f2af6a4
detach: true
environment:
NOCT_BYPASS_CONFIRMATION: True
NOCT_BYPASS_APP_ACCESS: True
POSTGRES_HOST: localhost
APP_REDIS_HOST: localhost
- name: test
image: harbor.devops.indico.io/indico/virga_testsuite:${DRONE_COMMIT_SHA}.unittest
commands:
- ./scripts/run_tests.sh
environment:
POSTGRES_HOST: localhost
POSTGRES_DB: indico
POSTGRES_USER: indico
POSTGRES_PASSWORD: development
---
kind: secret
name: DOCKER_CONFIG_JSON
get:
path: tools/drone/devops_harbor_pull_secret
name: DOCKER_CONFIG_JSON
---
kind: secret
name: harbor_username
get:
path: tools/drone/harbor-push-token
name: username
---
kind: secret
name: harbor_password
get:
path: tools/drone/harbor-push-token
name: password