-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathkine.yaml
65 lines (58 loc) · 1.39 KB
/
kine.yaml
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
package:
name: kine
version: "0.13.11"
epoch: 0
description: Run Kubernetes on MySQL, Postgres, sqlite, dqlite, not etcd.
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ca-certificates-bundle
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- git
- go
pipeline:
- uses: git-checkout
with:
expected-commit: ad37610ccb914b81f936702dce4078858dbc6ad3
repository: https://github.com/k3s-io/kine
tag: v${{package.version}}
- runs: |
export CGO_CFLAGS="-Wno-error=braces-around-scalar-init"
./scripts/build
install -Dm755 ./bin/kine "${{targets.destdir}}/usr/bin/kine"
- uses: strip
update:
enabled: true
github:
identifier: k3s-io/kine
strip-prefix: v
test:
environment:
contents:
packages:
- sqlite
- curl
pipeline:
- name: "Check kine version"
runs: |
kine --version
kine --help
- name: "Test kine with SQLite backend"
uses: test/daemon-check-output
with:
start: |
kine --endpoint sqlite://kine.db
timeout: 30
expected_output: |
Kine available at http://127.0.0.1:2379
post: |
# Wait for kine to start
sleep 5
# Check metrics endpoint
curl -s http://localhost:8080/metrics | grep -q "kine_"