-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.yml
34 lines (31 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
pipeline:
build:
image: docker
environment:
- DOCKER_HOST=tcp://172.17.0.1:2375
commands:
- docker build -t quay.io/ukhomeofficedigital/dq-tf-testsuite:${DRONE_COMMIT_SHA} .
image_to_quay:
image: docker
environment:
- DOCKER_HOST=tcp://172.17.0.1:2375
commands:
- docker login -u="ukhomeofficedigital+dqbot" -p=$${DOCKER_PASSWORD} quay.io
- docker push quay.io/ukhomeofficedigital/dq-tf-testsuite:$${DRONE_COMMIT_SHA}
secrets:
- DOCKER_PASSWORD
when:
event: push
tag_as_latest_quay:
image: docker
environment:
- DOCKER_HOST=tcp://172.17.0.1:2375
commands:
- docker login -u="ukhomeofficedigital+dqbot" -p=$${DOCKER_PASSWORD} quay.io
- docker tag quay.io/ukhomeofficedigital/dq-tf-testsuite:$${DRONE_COMMIT_SHA} quay.io/ukhomeofficedigital/dq-tf-testsuite:latest
- docker push quay.io/ukhomeofficedigital/dq-tf-testsuite:latest
secrets:
- DOCKER_PASSWORD
when:
branch: master
event: push