-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
51 lines (46 loc) · 1.15 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
pipeline:
my-build:
privileged: true
image: docker:1.11
environment:
- DOCKER_HOST=tcp://127.0.0.1:2375
commands:
- docker build -t myhelloworld .
when:
branch: master
event: push
image_to_quay:
image: docker:1.11
environment:
- DOCKER_HOST=tcp://localhost:2375
commands:
- docker login -u="jaynqac" -p=${DOCKER_PASSWORD} quay.io
- docker tag myhelloworld quay.io/ukhomeofficedigital/myhelloworld:${DRONE_COMMIT_SHA}
- docker push quay.io/ukhomeofficedigital/myhelloworld:${DRONE_COMMIT_SHA}
when:
branch: master
event: push
clone_deployment_scripts:
image: plugins/git
commands:
- git clone https://${GITHUB_TOKEN}:[email protected]/UKHomeOffice/jay-dsp-hello-world.git kube
when:
branch: master
event: push
deploy_to_uat:
image: quay.io/ukhomeofficedigital/kd:v0.2.3
environment:
- KUBE_NAMESPACE=jn1995
commands:
- cd kube
- ./deploy.sh
when:
environment: master
event: push
services:
dind:
image: docker:1.11-dind
privileged: true
command:
- "-s"
- "overlay"