mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-29 14:38:50 +00:00
Separate pipelines to run in parallel
This commit is contained in:
+37
-9
@@ -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: .
|
||||||
|
|||||||
Reference in New Issue
Block a user