mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-28 22:18:52 +00:00
Merge pull request #1171 from cloudnautique/drone1_yaml_updates
updated drone yaml for 1.0
This commit is contained in:
+113
-51
@@ -1,60 +1,122 @@
|
|||||||
---
|
---
|
||||||
pipeline:
|
kind: pipeline
|
||||||
build:
|
name: pull-request
|
||||||
# Do things
|
|
||||||
privileged: true
|
|
||||||
image: docker:stable-dind
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
commands:
|
|
||||||
- docker build --pull -f Dockerfile.prod .
|
|
||||||
when:
|
|
||||||
event: [pull_request]
|
|
||||||
|
|
||||||
publish-dev:
|
platform:
|
||||||
group: publish
|
os: linux
|
||||||
image: plugins/docker
|
arch: amd64
|
||||||
dockerfile: Dockerfile.dev
|
|
||||||
repo: rancher/docs
|
steps:
|
||||||
|
- name: test
|
||||||
|
pull: default
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
context: .
|
context: .
|
||||||
tag: dev
|
|
||||||
secrets: [docker_username, docker_password]
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: push
|
|
||||||
|
|
||||||
publish-staging:
|
|
||||||
group: publish
|
|
||||||
image: plugins/docker
|
|
||||||
dockerfile: Dockerfile.staging
|
|
||||||
repo: rancher/docs
|
|
||||||
context: .
|
|
||||||
tag: staging
|
|
||||||
secrets: [docker_username, docker_password]
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: push
|
|
||||||
|
|
||||||
publish-latest:
|
|
||||||
group: publish
|
|
||||||
image: plugins/docker
|
|
||||||
dockerfile: Dockerfile.prod
|
dockerfile: Dockerfile.prod
|
||||||
|
dry_run: true
|
||||||
repo: rancher/docs
|
repo: rancher/docs
|
||||||
context: .
|
when:
|
||||||
tag: latest
|
event:
|
||||||
secrets: [docker_username, docker_password]
|
- pull_request
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: push
|
|
||||||
|
|
||||||
publish-latest-algolia:
|
---
|
||||||
image: plugins/docker
|
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
|
dockerfile: Dockerfile.algolia
|
||||||
repo: rancher/docs
|
repo: rancher/docs
|
||||||
context: .
|
|
||||||
tag: algolia
|
tag: algolia
|
||||||
secrets: [docker_username, docker_password]
|
password:
|
||||||
when:
|
from_secret: docker_password
|
||||||
branch: master
|
username:
|
||||||
event: push
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|||||||
Reference in New Issue
Block a user