Skip to content

Commit c9d30e1

Browse files
ci: install crane in forge image
Currently seeing issues of crane not available in the uploading environment. Installing crane on forge image. https://buildkite.com/ray-project/postmerge/builds/15375/steps/canvas?jid=019bb99d-6f9e-45fa-92e3-a5a1d9373e8d#019bb99d-6f9e-45fa-92e3-a5a1d9373e8d/L198 Topic: crane-fix Signed-off-by: andrew <[email protected]>
1 parent 8d27704 commit c9d30e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ci/docker/forge.Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ if [[ "$(uname -i)" == "x86_64" ]]; then
100100
bash install-k8s-tools.sh
101101
fi
102102

103+
# Install crane (container registry tool)
104+
CRANE_VERSION=0.20.2
105+
CRANE_ARCH="$(uname -m)"
106+
if [[ "$CRANE_ARCH" == "aarch64" ]]; then
107+
CRANE_ARCH="arm64"
108+
fi
109+
curl -fsSL "https://github.com/google/go-containerregistry/releases/download/v${CRANE_VERSION}/go-containerregistry_Linux_${CRANE_ARCH}.tar.gz" \
110+
| tar -xzf - -C /usr/local/bin crane
111+
103112
EOF
104113

105114
USER forge

0 commit comments

Comments
 (0)