Skip to content

Commit

Permalink
Separate pipelines to run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent99 authored Feb 26, 2019
1 parent 6e67ba7 commit 7add180
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
---
kind: pipeline
name: default
name: pull-request

platform:
os: linux
arch: amd64

steps:
- name: build
pull: always
- name: test
pull: default
image: plugins/docker
settings:
context: .
dockerfile: Dockerfile.prod
dry_run: true
repo: rancher/docs
tag: dev
when:
event:
- pull_request

---
kind: pipeline
name: dev

platform:
os: linux
arch: amd64

steps:
- name: publish-dev
pull: always
pull: default
image: plugins/docker
settings:
context: .
dockerfile: Dockerfile.dev
group: publish
repo: rancher/docs
tag: dev
password:
Expand All @@ -38,12 +47,22 @@ steps:
event:
- push

---
kind: pipeline
name: staging

platform:
os: linux
arch: amd64

steps:
- name: publish-staging
pull: always
pull: default
image: plugins/docker
settings:
context: .
dockerfile: Dockerfile.staging
group: publish
repo: rancher/docs
tag: staging
password:
Expand All @@ -56,8 +75,17 @@ steps:
event:
- push

---
kind: pipeline
name: production

platform:
os: linux
arch: amd64

steps:
- name: publish-latest
pull: always
pull: default
image: plugins/docker
settings:
context: .
Expand All @@ -75,8 +103,8 @@ steps:
event:
- push

- name: publish-latest-algolia
pull: always
- name: publish-algolia
pull: default
image: plugins/docker
settings:
context: .
Expand Down

0 comments on commit 7add180

Please sign in to comment.