mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-03-14 13:24:12 +00:00
123 lines
1.8 KiB
YAML
123 lines
1.8 KiB
YAML
---
|
|
kind: pipeline
|
|
name: pull-request
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: test
|
|
pull: default
|
|
image: plugins/docker
|
|
settings:
|
|
context: .
|
|
dockerfile: Dockerfile.prod
|
|
dry_run: true
|
|
repo: rancher/docs
|
|
when:
|
|
event:
|
|
- pull_request
|
|
|
|
---
|
|
kind: pipeline
|
|
name: dev
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: publish-dev
|
|
pull: default
|
|
image: plugins/docker
|
|
settings:
|
|
context: .
|
|
dockerfile: Dockerfile.dev
|
|
group: publish
|
|
repo: rancher/docs
|
|
tag: dev
|
|
password:
|
|
from_secret: docker_password
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: staging
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: publish-staging
|
|
pull: default
|
|
image: plugins/docker
|
|
settings:
|
|
context: .
|
|
dockerfile: Dockerfile.staging
|
|
group: publish
|
|
repo: rancher/docs
|
|
tag: staging
|
|
password:
|
|
from_secret: docker_password
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
branch:
|
|
- staging
|
|
event:
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: production
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: publish-latest
|
|
pull: default
|
|
image: plugins/docker
|
|
settings:
|
|
context: .
|
|
dockerfile: Dockerfile.prod
|
|
group: publish
|
|
repo: rancher/docs
|
|
tag: latest
|
|
password:
|
|
from_secret: docker_password
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
|
|
- name: publish-algolia
|
|
pull: default
|
|
image: plugins/docker
|
|
settings:
|
|
context: .
|
|
dockerfile: Dockerfile.algolia
|
|
repo: rancher/docs
|
|
tag: algolia
|
|
password:
|
|
from_secret: docker_password
|
|
username:
|
|
from_secret: docker_username
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|