Skip to content

Commit 30f637e

Browse files
committed
chore(stacks): remove build pack
1 parent 4f213e2 commit 30f637e

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

stacks/pack/build.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,15 @@
66
# Implement build function
77
function build() {
88
generate-stack-path
9-
install-packages make
10-
install-stack go "${GO_VERSION}" && . init-stack
11-
12-
curl -sSL "https://github.com/buildpacks/pack/archive/refs/tags/v${STACK_VERSION}.tar.gz" | tar -xz \
13-
&& cd pack-${STACK_VERSION} \
14-
&& make
15-
9+
if [[ "${OS_ARCH}" == "amd64" ]]; then
10+
pack_download_url="https://github.com/buildpacks/pack/releases/download/v${STACK_VERSION}/pack-v${STACK_VERSION}-linux.tgz"
11+
else
12+
pack_download_url="https://github.com/buildpacks/pack/releases/download/v${STACK_VERSION}/pack-v${STACK_VERSION}-linux-${OS_ARCH}.tgz"
13+
fi
1614
BIN_DIR="${DATA_DIR}"/bin
1715
mkdir -p "${BIN_DIR}"
18-
mv ./out/pack "${BIN_DIR}"
19-
rm -rf pack-${STACK_VERSION}
16+
curl -sSL "${pack_download_url}" | tar xvz -C "${BIN_DIR}"
2017
}
2118

2219
# call build stack
2320
build-stack "${1}"
24-

0 commit comments

Comments
 (0)