ui/.drone.yml

35 lines
718 B
YAML

---
pipeline:
test:
privileged: true
image: rancher/dind:v0.3.0
commands:
- ENABLE_DOCKER=true ./scripts/ci
when:
event: [pull_request]
build:
privileged: true
image: rancher/dind:v0.3.0
commands:
- ENABLE_DOCKER=true BUILD_LATEST=true ./scripts/ci
when:
branch: "master"
event:
exclude: [pull_request]
upload:
image: plugins/gcs
source: dist/static/latest2
target: releases.rancher.com/ui/latest2
acl:
- allUsers:READER
cache_control: no-cache,must-revalidate
secrets:
- source: google_auth_key
target: GOOGLE_CREDENTIALS
when:
branch: master
event:
exclude: [pull_request]