forked from rancher/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
66 lines (63 loc) · 1.59 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
---
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, algolia_app_id, algolia_admin_key]
build_args:
- ALGOLIA_INDEX_NAME=dev_docs
- ALGOLIA_INDEX_FILE=public/algolia.json
build_args_from_env:
- ALGOLIA_APP_ID
- ALGOLIA_ADMIN_KEY
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, algolia_app_id, algolia_admin_key]
build_args:
- ALGOLIA_INDEX_NAME=dev_docs
- ALGOLIA_INDEX_FILE=public/algolia.json
build_args_from_env:
- ALGOLIA_APP_ID
- ALGOLIA_ADMIN_KEY
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, algolia_app_id, algolia_admin_key]
build_args:
- ALGOLIA_INDEX_NAME=prod_docs
- ALGOLIA_INDEX_FILE=public/algolia.json
build_args_from_env:
- ALGOLIA_APP_ID
- ALGOLIA_ADMIN_KEY
when:
branch: master
event: push