Skip to content

Commit f330271

Browse files
committed
feat(envoy): add envoy build
1 parent db75e8c commit f330271

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,12 @@
361361
"owner": "apache",
362362
"match": "^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
363363
},
364+
"envoy": {
365+
"name": "envoy",
366+
"type": "github",
367+
"owner": "envoyproxy",
368+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
369+
},
364370
}
365371

366372

stacks/envoy/build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
case $(uname -m) in
10+
aarch64) target="envoy-${STACK_VERSION}-linux-aarch_64";;
11+
x86_64) target="envoy-${STACK_VERSION}-linux-x86_64";;
12+
esac
13+
14+
BIN_DIR="${DATA_DIR}"/bin
15+
mkdir -p "${BIN_DIR}"
16+
curl -L -o "${BIN_DIR}"/envoy https://github.com/envoyproxy/envoy/releases/download/v${STACK_VERSION}/${target}
17+
chmod +x "${BIN_DIR}"/envoy
18+
}
19+
20+
# call build stack
21+
build-stack "${1}"

0 commit comments

Comments
 (0)