-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
48 lines (43 loc) · 1.16 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
clone:
clone:
image: plugins/git
depth: 1
pipeline:
build:
image: eu.gcr.io/sanity-cloud/ci
pull: true
secrets: [docker_auth, npmrc]
commands:
- ci-docker-build eu.gcr.io/sanity-cloud/cavs-www
publish:
image: eu.gcr.io/sanity-cloud/ci
secrets: [docker_auth]
commands:
- ci-docker-push eu.gcr.io/sanity-cloud/cavs-www
when:
event: push
deploy-production:
image: eu.gcr.io/sanity-cloud/ci
secrets: [kubernetes_auth, sentry_auth_token]
commands:
- ci-kubernetes-deploy eu.gcr.io/sanity-cloud/cavs-www production:clients kubernetes/production/
- ci-sentry-notify cavs-www production
when:
branch: master
event: push
deploy-staging:
image: eu.gcr.io/sanity-cloud/ci
secrets: [kubernetes_auth, sentry_auth_token]
commands:
- ci-kubernetes-deploy eu.gcr.io/sanity-cloud/cavs-www staging:clients kubernetes/staging/
- ci-sentry-notify cavs-www staging
when:
branch: staging
event: push
notify:
image: eu.gcr.io/sanity-cloud/ci
secrets: [postmark_server_token, slack_webhook]
commands:
- ci-notify
when:
status: [failure, success]