Skip to content

Commit 530b360

Browse files
committed
chore(registry): change registry to go build
1 parent 458b25d commit 530b360

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

stacks/registry/build.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ function build() {
88
generate-stack-path
99
BIN_DIR="${DATA_DIR}"/bin
1010
mkdir -p "${BIN_DIR}"
11-
curl -fsSL -o tmp.tar.gz https://github.com/distribution/distribution/releases/download/v${STACK_VERSION}/registry_${STACK_VERSION}_linux_${OS_ARCH}.tar.gz
12-
tar -xzf tmp.tar.gz
13-
mv registry "${BIN_DIR}"
14-
rm LICENSE README.md tmp.tar.gz
11+
install-stack go "${GO_VERSION}"
12+
. init-stack
13+
curl -fsSL -o tmp.tar.gz https://github.com/distribution/distribution/archive/refs/tags/v${STACK_VERSION}.tar.gz
14+
tar -xvzf tmp.tar.gz
15+
cd distribution-${STACK_VERSION}
16+
go build cmd/registry/main.go
17+
mv main "${BIN_DIR}"/registry
18+
cd ..
19+
rm -rf distribution-${STACK_VERSION} tmp.tar.gz
1520
}
1621

1722
# call build stack

0 commit comments

Comments
 (0)