-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.drone.yml
More file actions
74 lines (68 loc) · 1.5 KB
/
Copy path.drone.yml
File metadata and controls
74 lines (68 loc) · 1.5 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
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: aquasecurity/trivy-action@0.31.0
# #quay.io/sighup/trivy-offline:latest
# pull: always
# commands:
# - trivy image --skip-db-update python:3.4-alpine
#- name: scan
# image: drone-plugins/drone-snyk
# pull: if-not-exists
# privileged: true
# settings:
# dockerfile: Dockerfile
# image: rajaseg/caddy
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: cache
temp: {}
when:
event: push
branch: [master]
status: [changed, failure]