-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathetcd-3.5.yaml
76 lines (70 loc) · 1.86 KB
/
etcd-3.5.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
66
67
68
69
70
71
72
73
74
75
76
package:
name: etcd-3.5
version: 3.5.12
epoch: 0
description: A highly-available key value store for shared configuration and service discovery.
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ca-certificates-bundle
- glibc
provides:
- etcd=${{package.full-version}}
environment:
contents:
packages:
- bash
- busybox
- ca-certificates-bundle
- git
- go
pipeline:
- uses: git-checkout
with:
repository: https://github.com/etcd-io/etcd
tag: v${{package.version}}
expected-commit: e7b3bb6ccac840770f108ef9a0f013fa51b83256
- runs: |
bash -x ./build.sh
mkdir -p "${{targets.destdir}}"/var/lib/${{package.name}}
chmod 700 "${{targets.destdir}}"/var/lib/${{package.name}}
install -Dm755 bin/etcd "${{targets.destdir}}"/usr/bin/etcd
install -Dm755 bin/etcdctl "${{targets.destdir}}"/usr/bin/etcdctl
install -Dm755 bin/etcdutl "${{targets.destdir}}"/usr/bin/etcdutl
- uses: strip
update:
enabled: true
github:
identifier: etcd-io/etcd
strip-prefix: v
tag-filter-prefix: v3.5
use-tag: true
test:
environment:
contents:
packages:
- busybox
pipeline:
- name: Verify etcd version
runs: |
etcd --version | grep "etcd Version: 3.5"
- name: Start etcd server and perform health check
runs: |
# Start etcd in the background
etcd &
ETCD_PID=$!
sleep 5 # Wait for etcd to start
# Perform a health check
etcdctl endpoint health
kill $ETCD_PID
- name: Set and get a key-value pair
runs: |
etcd &
ETCD_PID=$!
sleep 5 # Wait for etcd to start
# Set a key-value pair
etcdctl put mykey "Hello, etcd"
# Get the value
etcdctl get mykey | grep -q "Hello, etcd"
kill $ETCD_PID