forked from rancher/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
48 lines (45 loc) · 1007 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
48
---
pipeline:
build:
# Do things
privileged: true
image: docker:stable-dind
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build -f Dockerfile.prod .
when:
event: [pull_request]
docker-publish-dev:
group: publish
image: plugins/docker
dockerfile: Dockerfile.dev
repo: rancher/docs
context: .
tag: dev
secrets: [docker_username, docker_password]
when:
branch: master
event: push
docker-publish-staging:
group: publish
image: plugins/docker
dockerfile: Dockerfile.staging
repo: rancher/docs
context: .
tag: staging
secrets: [docker_username, docker_password]
when:
branch: master
event: push
docker-publish-latest:
group: publish
image: plugins/docker
dockerfile: Dockerfile.prod
repo: rancher/docs
context: .
tag: latest
secrets: [docker_username, docker_password]
when:
branch: master
event: push