Skip to content

Commit

Permalink
feat: add crane setup
Browse files Browse the repository at this point in the history
  • Loading branch information
armandomiani committed Dec 19, 2024
1 parent 88cef96 commit b6c5faf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions k8s/c2d_deployer.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ TESTER_BUILDER := tester-builder-$(shell echo $$RANDOM)
echo "Downloading crane version $$VERSION..."; \
curl -sL "https://github.com/google/go-containerregistry/releases/download/$$VERSION/go-containerregistry_$${OS}_$${ARCH}.tar.gz" > go-containerregistry.tar.gz; \
tar -zxvf go-containerregistry.tar.gz crane; \
sudo mv crane /usr/local/bin/crane; \
chmod 755 /usr/local/bin/crane; \
if command -v sudo &>/dev/null; then \
sudo mv crane /usr/local/bin/crane; \
sudo chmod 755 /usr/local/bin/crane; \
sudo chmod +x /usr/local/bin/crane; \
else \
mv crane /usr/local/bin/crane; \
chmod 755 /usr/local/bin/crane; \
chmod +x /usr/local/bin/crane; \
fi; \
rm go-containerregistry.tar.gz; \
sudo chmod +x /usr/local/bin/crane; \
echo "crane successfully installed"; \
else \
echo "crane is already installed"; \
Expand Down

0 comments on commit b6c5faf

Please sign in to comment.