This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
64 lines (60 loc) · 1.89 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
53
54
55
56
57
58
59
60
61
62
63
64
pipeline:
build_image:
image: docker:17.07.0
environment:
- DOCKER_HOST=tcp://172.17.0.1:2375
commands:
- docker build -t quay.io/ukhomeofficedigital/seccomp-config:${DRONE_BUILD_NUMBER} .
image_to_quay:
image: docker:17.07.0
secrets:
- quay_user
- quay_password
environment:
- DOCKER_HOST=tcp://172.17.0.1:2375
commands:
- docker login -u=$${QUAY_USER} -p=$${QUAY_PASSWORD} quay.io
- docker tag quay.io/ukhomeofficedigital/seccomp-config:$${DRONE_BUILD_NUMBER} quay.io/ukhomeofficedigital/seccomp-config:$${DRONE_COMMIT_SHA}
- docker tag quay.io/ukhomeofficedigital/seccomp-config:$${DRONE_BUILD_NUMBER} quay.io/ukhomeofficedigital/seccomp-config:latest
- docker push quay.io/ukhomeofficedigital/seccomp-config:$${DRONE_COMMIT_SHA}
- docker push quay.io/ukhomeofficedigital/seccomp-config:latest
when:
branch: master
event: push
tag_image:
image: docker:17.07.0
secrets:
- quay_user
- quay_password
environment:
- DOCKER_HOST=tcp://172.17.0.1:2375
commands:
- docker login -u=$${QUAY_USER} -p=$${QUAY_PASSWORD} quay.io
- docker tag quay.io/ukhomeofficedigital/seccomp-config:$${DRONE_BUILD_NUMBER} quay.io/ukhomeofficedigital/seccomp-config:$${DRONE_TAG}
- docker push quay.io/ukhomeofficedigital/seccomp-config:$${DRONE_TAG}
when:
event: tag
rollout_dev:
image: quay.io/ukhomeofficedigital/kd:v0.3.1
secrets:
- dev_kube_server
- dev_kube_token
environment:
- DRONE_DEPLOY_TO=dev
commands:
- bin/deploy.sh
when:
branch: master
event: push
rollout_test:
image: quay.io/ukhomeofficedigital/kd:v0.3.1
secrets:
- test_kube_server
- test_kube_token
environment:
- DRONE_DEPLOY_TO=test
commands:
- bin/deploy.sh
when:
branch: master
event: push