forked from mydraft-cc/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
79 lines (74 loc) · 1.6 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
kind: pipeline
name: default
steps:
- name: build
image: docker
commands:
- docker build . -t build-image -f Dockerfile.build
- docker create --name build-container build-image
- docker cp build-container:/src/build /build
volumes:
- name: build
path: /build
- name: docker1
path: /var/run/docker.sock
- name: docker2
path: /var/lib/docker
- name: publish
image: plugins/gh-pages
settings:
username:
from_secret: GITHUB_USERNAME
password:
from_secret: GITHUB_PASSWORD
pages_directory: /build/
volumes:
- name: build
path: /build
when:
event:
- push
branch:
- master
- name: cleanup-build
image: docker
commands:
- docker rm build-container
volumes:
- name: docker1
path: /var/run/docker.sock
- name: docker2
path: /var/lib/docker
when:
status:
- failure
- success
- name: cleanup
image: docker
commands:
- docker system prune -f
volumes:
- name: docker1
path: /var/run/docker.sock
- name: docker2
path: /var/lib/docker
when:
status:
- failure
volumes:
- name: build
temp: {}
- name: docker1
host:
path: /var/run/docker.sock
- name: docker2
host:
path: /var/lib/docker
---
kind: secret
name: GITHUB_USERNAME
data: K+UUYGnsZSxNtSl81b4iJT0oGLJtfk8hNAxgaGBUHCX8GmF+GTBWykW8xQ==
---
kind: secret
name: GITHUB_PASSWORD
data: 92oAXn7OCNtzuL9hm3yOZLjXsk9gRXq2do+GmV1L/klbNc8coWgJ+JehkSKjEL81