Files
rancher-docs/.drone.yml
Vincent Fiduccia 7f0031403a More tags
2018-07-10 12:48:35 -07: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]
docker-publish-algolia:
group: publish
image: plugins/docker
dockerfile: Dockerfile.algolia
repo: rancher/docs
context: .
tag: algolia
secrets: [docker_username, docker_password]
when:
branch: master
event: push
docker-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
docker-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
docker-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