We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 458b25d commit 530b360Copy full SHA for 530b360
1 file changed
stacks/registry/build.sh
@@ -8,10 +8,15 @@ function build() {
8
generate-stack-path
9
BIN_DIR="${DATA_DIR}"/bin
10
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
+ install-stack go "${GO_VERSION}"
+ . init-stack
+ curl -fsSL -o tmp.tar.gz https://github.com/distribution/distribution/archive/refs/tags/v${STACK_VERSION}.tar.gz
+ 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
20
}
21
22
# call build stack
0 commit comments