Files
rancher-docs/.drone.yml
T
2019-02-16 19:57:19 -08:00

61 lines
1.2 KiB
YAML

---
pipeline:
build:
# 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:
group: publish
image: plugins/docker
dockerfile: Dockerfile.dev
repo: rancher/docs
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
repo: rancher/docs
context: .
tag: latest
secrets: [docker_username, docker_password]
when:
branch: master
event: push
publish-latest-algolia:
image: plugins/docker
dockerfile: Dockerfile.algolia
repo: rancher/docs
context: .
tag: algolia
secrets: [docker_username, docker_password]
when:
branch: master
event: push