Separate pipelines to run in parallel

This commit is contained in:
Vincent Fiduccia
2019-02-26 16:16:59 -07:00
committed by GitHub
parent 6e67ba7fde
commit 7add1801d1
+37 -9
View File
@@ -1,31 +1,40 @@
--- ---
kind: pipeline kind: pipeline
name: default name: pull-request
platform: platform:
os: linux os: linux
arch: amd64 arch: amd64
steps: steps:
- name: build - name: test
pull: always pull: default
image: plugins/docker image: plugins/docker
settings: settings:
context: . context: .
dockerfile: Dockerfile.prod dockerfile: Dockerfile.prod
dry_run: true dry_run: true
repo: rancher/docs repo: rancher/docs
tag: dev
when: when:
event: event:
- pull_request - pull_request
---
kind: pipeline
name: dev
platform:
os: linux
arch: amd64
steps:
- name: publish-dev - name: publish-dev
pull: always pull: default
image: plugins/docker image: plugins/docker
settings: settings:
context: . context: .
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
group: publish
repo: rancher/docs repo: rancher/docs
tag: dev tag: dev
password: password:
@@ -38,12 +47,22 @@ steps:
event: event:
- push - push
---
kind: pipeline
name: staging
platform:
os: linux
arch: amd64
steps:
- name: publish-staging - name: publish-staging
pull: always pull: default
image: plugins/docker image: plugins/docker
settings: settings:
context: . context: .
dockerfile: Dockerfile.staging dockerfile: Dockerfile.staging
group: publish
repo: rancher/docs repo: rancher/docs
tag: staging tag: staging
password: password:
@@ -56,8 +75,17 @@ steps:
event: event:
- push - push
---
kind: pipeline
name: production
platform:
os: linux
arch: amd64
steps:
- name: publish-latest - name: publish-latest
pull: always pull: default
image: plugins/docker image: plugins/docker
settings: settings:
context: . context: .
@@ -75,8 +103,8 @@ steps:
event: event:
- push - push
- name: publish-latest-algolia - name: publish-algolia
pull: always pull: default
image: plugins/docker image: plugins/docker
settings: settings:
context: . context: .