Skip to content

Commit 357b6d2

Browse files
committed
feat(vouch-proxy): add vouch-proxy build
1 parent 2363b28 commit 357b6d2

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

stacks/vouch-proxy/build.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)