-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.drone.yml
52 lines (47 loc) · 1.33 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
49
50
51
52
pipeline:
install:
image: node:10.15-alpine
commands:
- npm ci
test:
image: node:10.15-alpine
commands:
- npm test
build_dry_run:
image: plugins/docker
secrets: [ docker_username, docker_password ]
repo: publicintegrity/fec-loader
cache_from: "publicintegrity/fec-loader:latest"
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/fec-loader
cache_from: "publicintegrity/fec-loader:latest"
tags:
- ${DRONE_COMMIT_SHA:0:12}
- latest
when:
event: deployment
environment: production
pipeline_update:
image: "publicintegrity/pachctl:554b1a5ddfe3"
environment:
- PACHD_ADDRESS=pachd-api-grpc.pachyderm.svc.cluster.local:30650
- IMAGE_NAME=publicintegrity/fec-loader
- IMAGE_TAG=${DRONE_COMMIT_SHA:0:12}
commands:
- for file in $(find ./pipelines -name "*.yml" | sort); do yq write -d'*' $file transform.image "$${IMAGE_NAME}:$${IMAGE_TAG}" | yq read -j -; done | pachctl update pipeline
when:
event: deployment
environment: production
slack:
image: plugins/slack
secrets: [ slack_webhook ]
when:
status: [ success, failure ]