forked from UKHomeOffice/jenkins-docker-aws
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
38 lines (35 loc) · 1.05 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
pipeline:
build_docker_image:
image: docker:1.12
environment:
- DOCKER_HOST=tcp://127.0.0.1:2375
commands:
- docker build -t image .
latest_image_to_quay:
image: docker:1.13
environment:
- DOCKER_HOST=tcp://127.0.0.1:2375
commands:
- docker login -u="ukhomeofficedigital+jenkins_aws" -p=${DOCKER_PASSWORD} quay.io
- docker tag image quay.io/ukhomeofficedigital/jenkins-docker-aws:latest
- docker push quay.io/ukhomeofficedigital/jenkins-docker-aws:latest
when:
event: push
branch: master
tag_image_to_quay:
image: docker:1.13
environment:
- DOCKER_HOST=tcp://127.0.0.1:2375
commands:
- docker login -u="ukhomeofficedigital+jenkins_aws" -p=${DOCKER_PASSWORD} quay.io
- docker tag image quay.io/ukhomeofficedigital/jenkins-docker-aws:${DRONE_TAG}
- docker push quay.io/ukhomeofficedigital/jenkins-docker-aws:${DRONE_TAG}
when:
event: tag
services:
dind:
image: docker:1.13-dind
privileged: true
command:
- "-s"
- "overlay"