Merge pull request #1171 from cloudnautique/drone1_yaml_updates

updated drone yaml for 1.0
This commit is contained in:
Vincent Fiduccia
2019-02-26 16:18:27 -07:00
committed by GitHub
+113 -51
View File
@@ -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