Skip to content

Commit 51bb2c6

Browse files
committed
Initial implementation for Scaleway
0 parents  commit 51bb2c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3016
-0
lines changed

.bra.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[run]
2+
watch_all = true
3+
watch_dirs = ["cmd", "pkg"]
4+
watch_exts = [".go"]
5+
ignore = [".git", "bin", "dist"]
6+
ignore_files = []
7+
build_delay = 1500
8+
interrupt_timout = 15
9+
graceful_kill = false
10+
11+
init_cmds = [
12+
["make", "build"],
13+
[
14+
"./bin/scw_exporter",
15+
"--log.pretty",
16+
"--log.level",
17+
"debug",
18+
"server"
19+
]
20+
]
21+
22+
cmds = [
23+
["make", "build"],
24+
[
25+
"./bin/scw_exporter",
26+
"--log.pretty",
27+
"--log.level",
28+
"debug",
29+
"server"
30+
]
31+
]

.codacy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exclude_paths:
2+
- _tools/**
3+
- vendor/**

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!dist/
3+
!bin/

.drone.yml

Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
1+
workspace:
2+
base: /srv/app
3+
path: src/github.com/promhippie/scw_exporter
4+
5+
branches:
6+
- master
7+
8+
pipeline:
9+
cache-restore:
10+
image: plugins/s3-cache:1
11+
pull: true
12+
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
13+
restore: true
14+
when:
15+
local: false
16+
17+
app-prepare:
18+
image: webhippie/golang:edge
19+
pull: true
20+
environment:
21+
- CGO_ENABLED=0
22+
- GOPATH=/srv/app
23+
- TAGS=
24+
commands:
25+
- make clean
26+
- make retool
27+
- make sync
28+
- make generate
29+
30+
app-vet:
31+
image: webhippie/golang:edge
32+
pull: true
33+
group: cli
34+
environment:
35+
- CGO_ENABLED=0
36+
- GOPATH=/srv/app
37+
- TAGS=
38+
commands:
39+
- make vet
40+
41+
app-check:
42+
image: webhippie/golang:edge
43+
pull: true
44+
group: cli
45+
environment:
46+
- CGO_ENABLED=0
47+
- GOPATH=/srv/app
48+
- TAGS=
49+
commands:
50+
- make megacheck
51+
52+
app-lint:
53+
image: webhippie/golang:edge
54+
pull: true
55+
group: cli
56+
environment:
57+
- CGO_ENABLED=0
58+
- GOPATH=/srv/app
59+
- TAGS=
60+
commands:
61+
- make lint
62+
63+
app-test:
64+
image: webhippie/golang:edge
65+
pull: true
66+
group: cli
67+
environment:
68+
- CGO_ENABLED=0
69+
- GOPATH=/srv/app
70+
- TAGS=
71+
commands:
72+
- make test
73+
74+
app-build:
75+
image: webhippie/golang:edge
76+
pull: true
77+
group: cli
78+
environment:
79+
- CGO_ENABLED=0
80+
- GOPATH=/srv/app
81+
- TAGS=
82+
commands:
83+
- make build
84+
85+
app-windows:
86+
image: karalabe/xgo-latest:latest
87+
pull: true
88+
group: release
89+
environment:
90+
- CGO_ENABLED=0
91+
- GOPATH=/srv/app
92+
- TAGS=
93+
commands:
94+
- make release-dirs release-windows
95+
when:
96+
event: [ push, tag ]
97+
98+
app-linux:
99+
image: karalabe/xgo-latest:latest
100+
pull: true
101+
group: release
102+
environment:
103+
- CGO_ENABLED=0
104+
- GOPATH=/srv/app
105+
- TAGS=
106+
commands:
107+
- make release-dirs release-linux
108+
when:
109+
event: [ push, tag ]
110+
111+
app-darwin:
112+
image: karalabe/xgo-latest:latest
113+
pull: true
114+
group: release
115+
environment:
116+
- CGO_ENABLED=0
117+
- GOPATH=/srv/app
118+
- TAGS=
119+
commands:
120+
- make release-dirs release-darwin
121+
when:
122+
event: [ push, tag ]
123+
124+
app-finish:
125+
image: webhippie/golang:edge
126+
pull: true
127+
environment:
128+
- CGO_ENABLED=0
129+
- GOPATH=/srv/app
130+
- TAGS=
131+
commands:
132+
- make release-copy release-check
133+
when:
134+
event: [ push, tag ]
135+
136+
app-gpgsign:
137+
image: plugins/gpgsign:1
138+
pull: true
139+
secrets: [ gpgsign_key, gpgsign_passphrase ]
140+
detach_sign: true
141+
files:
142+
- dist/release/*
143+
excludes:
144+
- dist/release/*.sha256
145+
when:
146+
event: [ push, tag ]
147+
148+
docker-amd64:
149+
image: plugins/docker:17.05
150+
pull: true
151+
group: docker
152+
secrets: [ docker_username, docker_password ]
153+
repo: promhippie/scw-exporter
154+
dockerfile: docker/Dockerfile.linux.amd64
155+
auto_tag: true
156+
auto_tag_suffix: linux-amd64
157+
when:
158+
event: [ push, tag ]
159+
160+
docker-i386:
161+
image: plugins/docker:17.05
162+
pull: true
163+
group: docker
164+
secrets: [ docker_username, docker_password ]
165+
repo: promhippie/scw-exporter
166+
dockerfile: docker/Dockerfile.linux.i386
167+
auto_tag: true
168+
auto_tag_suffix: linux-i386
169+
when:
170+
event: [ push, tag ]
171+
172+
docker-arm64v8:
173+
image: plugins/docker:17.05
174+
pull: true
175+
group: docker
176+
secrets: [ docker_username, docker_password ]
177+
repo: promhippie/scw-exporter
178+
dockerfile: docker/Dockerfile.linux.arm64v8
179+
auto_tag: true
180+
auto_tag_suffix: linux-arm64v8
181+
when:
182+
event: [ push, tag ]
183+
184+
docker-arm32v7:
185+
image: plugins/docker:17.05
186+
pull: true
187+
group: docker
188+
secrets: [ docker_username, docker_password ]
189+
repo: promhippie/scw-exporter
190+
dockerfile: docker/Dockerfile.linux.arm32v7
191+
auto_tag: true
192+
auto_tag_suffix: linux-arm32v7
193+
when:
194+
event: [ push, tag ]
195+
196+
docker-arm32v6:
197+
image: plugins/docker:17.05
198+
pull: true
199+
group: docker
200+
secrets: [ docker_username, docker_password ]
201+
repo: promhippie/scw-exporter
202+
dockerfile: docker/Dockerfile.linux.arm32v6
203+
auto_tag: true
204+
auto_tag_suffix: linux-arm32v6
205+
when:
206+
event: [ push, tag ]
207+
208+
docker-manifests:
209+
image: plugins/manifest:1
210+
pull: true
211+
secrets: [ docker_username, docker_password ]
212+
spec: manifest.tmpl
213+
auto_tag: true
214+
ignore_missing: true
215+
when:
216+
event: [ push, tag ]
217+
218+
docker-microbadger:
219+
image: plugins/webhook:1
220+
pull: true
221+
secrets:
222+
- source: microbadger_token
223+
target: plugin_urls
224+
when:
225+
event: [ push, tag ]
226+
227+
cache-rebuild:
228+
image: plugins/s3-cache:1
229+
pull: true
230+
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
231+
rebuild: true
232+
mount:
233+
- _tools
234+
- vendor
235+
when:
236+
local: false
237+
event: [ push ]
238+
239+
cache-flush:
240+
image: plugins/s3-cache:1
241+
pull: true
242+
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
243+
flush: true
244+
flush_age: 14
245+
when:
246+
local: false
247+
event: [ push ]
248+
249+
docs-build:
250+
image: webhippie/hugo:latest
251+
pull: true
252+
commands:
253+
- make docs
254+
when:
255+
local: false
256+
event: [ push ]
257+
258+
docs-publish:
259+
image: plugins/gh-pages:1
260+
pull: true
261+
secrets: [ github_username, github_password ]
262+
pages_directory: docs/public/
263+
temporary_base: tmp/
264+
when:
265+
local: false
266+
event: [ push ]
267+
268+
github-release:
269+
image: plugins/github-release:1
270+
pull: true
271+
secrets: [ github_token ]
272+
files:
273+
- dist/release/*
274+
when:
275+
event: [ tag ]
276+
277+
notify-matrix:
278+
image: plugins/matrix:1
279+
pull: true
280+
secrets: [ matrix_roomid, matrix_username, matrix_password ]
281+
when:
282+
local: false
283+
event: [ push, tag ]
284+
status: [ changed, failure ]

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[Makefile]
11+
indent_style = tab
12+
indent_size = 4
13+
14+
[*.go]
15+
indent_style = tab
16+
indent_size = 4
17+
18+
[*.md]
19+
trim_trailing_whitespace = true

.github/issue_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- PLEASE READ BEFORE DELETING
2+
3+
Please write English, this is the language everybody of us understands. Take a
4+
moment to search that an issue doesn't already exist If you only got questions
5+
please head over to our Matrix channel:
6+
7+
https://matrix.to/#/#webhippie:matrix.org
8+
9+
-->

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- PLEASE READ BEFORE DELETING
2+
3+
Make sure to target the master branch, describe what your pull requests does and
4+
which issue you are solving (if any). Please read our contributing guidelines as
5+
well:
6+
7+
https://github.com/promhippie/scw_exporter/blob/master/CONTRIBUTING.md
8+
9+
-->

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
*.prof
25+
26+
coverage.out
27+
28+
/_tools
29+
/vendor
30+
/bin
31+
/dist
32+
33+
.envrc

0 commit comments

Comments
 (0)