Skip to content

Commit f929d8d

Browse files
committed
feat(stacks): add caddy
1 parent 4273562 commit f929d8d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

stacks/caddy/build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
BIN_DIR="${DATA_DIR}"/bin
10+
mkdir -p "${BIN_DIR}"
11+
curl -fsSL -o tmp.tar.gz https://github.com/caddyserver/caddy/releases/download/v${STACK_VERSION}/caddy_${STACK_VERSION}_linux_${OS_ARCH}.tar.gz
12+
tar -xvzf tmp.tar.gz
13+
mv caddy "${BIN_DIR}"
14+
rm LICENSE README.md tmp.tar.gz
15+
}
16+
17+
# call build stack
18+
build-stack "${1}"

0 commit comments

Comments
 (0)