-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
39 lines (36 loc) · 1.01 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
pipeline:
build_dry_run:
image: plugins/docker
secrets: [ docker_username, docker_password ]
repo: publicintegrity/crp-loader
tags:
- ${DRONE_COMMIT_SHA:0:12}
- latest
dry_run: true
when:
event: [push, tag]
build_push:
image: plugins/docker
secrets: [ docker_username, docker_password ]
repo: publicintegrity/crp-loader
tags:
- ${DRONE_COMMIT_SHA:0:12}
- latest
when:
event: deployment
environment: production
pipeline_update:
image: publicintegrity/pachctl
environment:
- PACHD_ADDRESS=pachd.pachyderm.svc.cluster.local:650
- IMAGE_TAG=${DRONE_COMMIT_SHA:0:12}
commands:
- for file in $(find ./pipelines -name "*.yml"); do yaml2json $file | jq '.transform.image += ":'$${IMAGE_TAG}'"' | pachctl update-pipeline --no-port-forwarding; done
when:
event: deployment
environment: production
slack:
image: plugins/slack
secrets: [ slack_webhook ]
when:
status: [ success, failure ]