-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
143 lines (135 loc) · 4.62 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
kind: template
load: pipeline-builder.star
data:
builds:
# test builds during PRs
# aws-cli-chamber-helm
- name: build-ci-cd-aws-cli-chamber-helm-on-pr
repository: ghcr.io/sidestream-tech/dockerfiles/aws-cli-chamber-helm
path_to_dockerfile: ci-cd/aws-cli-chamber-helm/Dockerfile
path_to_context: ci-cd/aws-cli-chamber-helm/
tags_to_cache_from:
- "main"
trigger:
event:
- pull_request
- name: build-ci-cd-docker-in-docker-chamber-on-pr
repository: ghcr.io/sidestream-tech/dockerfiles/docker-in-docker-chamber
path_to_dockerfile: ci-cd/docker-in-docker-chamber/Dockerfile
path_to_context: ci-cd/docker-in-docker-chamber/
tags_to_cache_from:
- "main"
trigger:
event:
- pull_request
- name: build-ci-cd-aws-cli-chamber-helmsman-on-pr
repository: ghcr.io/sidestream-tech/dockerfiles/aws-cli-chamber-helmsman
path_to_dockerfile: ci-cd/aws-cli-chamber-helmsman/Dockerfile
path_to_context: ci-cd/aws-cli-chamber-helmsman/
tags_to_cache_from:
- "main"
trigger:
event:
- pull_request
- name: build-ci-cd-aws-az-cli-chamber-helm-on-pr
repository: ghcr.io/sidestream-tech/dockerfiles/aws-az-cli-chamber-helm
path_to_dockerfile: ci-cd/aws-az-cli-chamber-helm/Dockerfile
path_to_context: ci-cd/aws-az-cli-chamber-helm/
tags_to_cache_from:
- "main"
trigger:
event:
- pull_request
# publish images on merge to main
# publish aws-cli-chamber-helm:main and aws-cli-chamber-helm:$MAIN_COMMIT_SHA
- name: publish-ci-cd-aws-cli-chamber-helm-merge-main
repository: ghcr.io/sidestream-tech/dockerfiles/aws-cli-chamber-helm
tags:
- "main"
- "${DRONE_COMMIT_SHA}"
labels:
- key: org.opencontainers.image.source
value: https://github.com/sidestream-tech/dockerfiles
path_to_dockerfile: ci-cd/aws-cli-chamber-helm/Dockerfile
path_to_context: ci-cd/aws-cli-chamber-helm/
tags_to_cache_from:
- "main"
trigger:
event:
- push
branch:
- main
# publish ci-cd-docker-in-docker-chamber:main and ci-cd-docker-in-docker-chamber:$MAIN_COMMIT_SHA
- name: publish-ci-cd-docker-in-docker-chamber-merge-main
repository: ghcr.io/sidestream-tech/dockerfiles/docker-in-docker-chamber
tags:
- "main"
- "${DRONE_COMMIT_SHA}"
labels:
- key: org.opencontainers.image.source
value: https://github.com/sidestream-tech/dockerfiles
path_to_dockerfile: ci-cd/docker-in-docker-chamber/Dockerfile
path_to_context: ci-cd/docker-in-docker-chamber/
tags_to_cache_from:
- "main"
trigger:
event:
- push
branch:
- main
- name: publish-ci-cd-aws-cli-chamber-helmsman-merge-main
repository: ghcr.io/sidestream-tech/dockerfiles/aws-cli-chamber-helmsman
tags:
- "main"
- "${DRONE_COMMIT_SHA}"
labels:
- key: org.opencontainers.image.source
value: https://github.com/sidestream-tech/dockerfiles
path_to_dockerfile: ci-cd/aws-cli-chamber-helmsman/Dockerfile
path_to_context: ci-cd/aws-cli-chamber-helmsman/
tags_to_cache_from:
- "main"
trigger:
event:
- push
branch:
- main
- name: publish-ci-cd-aws-az-cli-chamber-helm-merge-main
repository: ghcr.io/sidestream-tech/dockerfiles/aws-az-cli-chamber-helm
tags:
- "main"
- "${DRONE_COMMIT_SHA}"
labels:
- key: org.opencontainers.image.source
value: https://github.com/sidestream-tech/dockerfiles
path_to_dockerfile: ci-cd/aws-az-cli-chamber-helm/Dockerfile
path_to_context: ci-cd/aws-az-cli-chamber-helm/
tags_to_cache_from:
- "main"
trigger:
event:
- push
branch:
- main
pipelines:
- kind: pipeline
type: kubernetes
name: check-markdown-lint-dockerfiles
steps:
- name: check-markdown-links
image: node:lts
commands:
- npm i -g markdown-link-check
- find . -name "*.md" | xargs -n1 markdown-link-check
- name: lint-dockerfiles
image: hadolint/hadolint:latest-debian
commands:
- find . -name Dockerfile | xargs -n1 hadolint --failure-threshold warning
- name: success
image: alpine
depends_on: ["check-markdown-links", "lint-dockerfiles"]
commands:
- echo "success"
trigger:
event:
- pull_request