File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# Implement build function
77function 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
2320build-stack " ${1} "
24-
You can’t perform that action at this time.
0 commit comments