-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.yml
61 lines (56 loc) · 1.19 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
kind: pipeline
type: docker
name: Caddy Docker Container
steps:
- name: restore-cache-with-filesystem
image: meltwater/drone-cache:v1.1.0-rc1
pull: always
settings:
archive_format: gzip
backend: filesystem
cache_key: volume
restore: true
exit_code: true
volumes:
- name: cache
path: /tmp/cache
- name: docker-build-publish
image: plugins/docker
volumes:
- name: dockersock
path: /var/run/docker.sock
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rajaseg/caddy
dockerfile: Dockerfile
auto_tag: true
- name: rebuild-cache-with-filesystem
image: meltwater/drone-cache:v1.1.0-rc1
pull: always
settings:
archive_format: gzip
backend: filesystem
cache_key: volume
rebuild: true
exit_code: true
volumes:
- name: cache
path: /tmp/cache
- name: scan
image: quay.io/sighup/trivy-offline:latest
pull: always
commands:
- trivy image --skip-db-update python:3.4-alpine
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: cache
temp: {}
when:
event: push
branch: [master]
status: [changed, failure]