We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4273562 commit f929d8dCopy full SHA for f929d8d
1 file changed
stacks/caddy/build.sh
@@ -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