We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2363b28 commit 357b6d2Copy full SHA for 357b6d2
1 file changed
stacks/vouch-proxy/build.sh
@@ -0,0 +1,25 @@
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
+ install-stack go 1.16.15 && . init-stack
10
11
+ curl -sSL "https://github.com/vouch/vouch-proxy/archive/refs/tags/v${STACK_VERSION}.tar.gz" | tar -xz \
12
+ && mv vouch-proxy-${STACK_VERSION} $GOPATH/src/vouch-proxy/ \
13
+ && cd $GOPATH/src/vouch-proxy \
14
+ && ./do.sh goget \
15
+ && ./do.sh gobuildstatic \
16
+ && ./do.sh install
17
18
+ BIN_DIR="${DATA_DIR}"/bin
19
+ mkdir -p "${BIN_DIR}"
20
+ mv $GOPATH/bin/vouch-proxy "${BIN_DIR}"
21
+}
22
23
+# call build stack
24
+build-stack "${1}"
25
0 commit comments