-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
70 lines (65 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
kind: pipeline
type: docker
name: build
steps:
- name: publish-docker
image: plugins/docker
network_mode: registry-network
settings:
context: service
dockerfile: service/Dockerfile
repo: registry:5000/buggy-service
registry: registry:5000
insecure: true
- name: publish-docker-mysql
image: plugins/docker
network_mode: registry-network
settings:
context: service/mysql
dockerfile: service/mysql/Dockerfile
repo: registry:5000/buggy-service-mysql
registry: registry:5000
insecure: true
- name: publish-service-sources
image: alpine
environment:
SSH_KEY:
from_secret: github_bot_ssh_key
ACCESS_TOKEN:
from_secret: github_bot_access_token
commands:
- apk update && apk add curl bash
- curl -s https://$${ACCESS_TOKEN}@raw.githubusercontent.com/enowars/Enowars4DevOps/master/drone-opennebula/push-services.sh | bash -s buggy
- name: trigger-vm-image-creation
image: plugins/downstream
settings:
server: https://droneci.sect.tu-berlin.de
token:
from_secret: trigger_token
fork: true
repositories:
- enowars/Enowars4DevOps@master
trigger:
branch:
- master
event:
- push
---
kind: pipeline
type: docker
name: test
services:
- name: buggy
detach: true
image: localhost:5000/buggy-service
environment:
MYSQL_DATABASE: enodb
MYSQL_ROOT_PASSWORD: root
- name: buggy-mysql
detach: true
image: localhost:5000/buggy-service-mysql
environment:
MYSQL_DATABASE: enodb
MYSQL_ROOT_PASSWORD: root
depends_on:
- build