-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.drone.yml
More file actions
74 lines (69 loc) · 1.54 KB
/
Copy path.drone.yml
File metadata and controls
74 lines (69 loc) · 1.54 KB
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
65
66
67
68
69
70
71
72
73
74
---
kind: pipeline
name: default
type: kubernetes
platform:
os: linux
arch: amd64
steps:
- name: build
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: Dockerfile
force_tag: true
registry: quay.io
repo: quay.io/ukhomeofficedigital/python-kafka-pandas
tags:
- ${DRONE_COMMIT_SHA}
- dev-${DRONE_BUILD_NUMBER}
cache_from: quay.io/ukhomeofficedigital/python-kafka-pandas:latest
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
when:
branch:
exclude:
- main
event:
- push
- name: trivy_scan
pull: if-not-exists
image: quay.io/ukhomeofficedigital/trivyscanner:master
commands:
- trivy image --ignore-unfixed --exit-code 0 --no-progress quay.io/ukhomeofficedigital/python-kafka-pandas:${DRONE_COMMIT_SHA}
when:
branch:
exclude:
- main
event:
- push
- name: build-master
pull: if-not-exists
image: plugins/docker
settings:
dockerfile: Dockerfile
force_tag: true
registry: quay.io
repo: quay.io/ukhomeofficedigital/python-kafka-pandas
tags:
- latest
- b${DRONE_BUILD_NUMBER}
cache_from: quay.io/ukhomeofficedigital/python-kafka-pandas:latest
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
when:
branch:
- main
event:
- promote
target:
- production
services:
- name: docker
image: 340268328991.dkr.ecr.eu-west-2.amazonaws.com/acp/dind