Skip to content

Commit

Permalink
Download crane binary corresponding to underlying runner architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
bbednarek committed Feb 15, 2023
1 parent e82f1b9 commit 67a61a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ runs:
os="Darwin"
fi
arch=$(uname -m)
if [[ ! -z ${tag} ]]; then
echo "Installing crane @ ${tag} for ${os}"
curl -fsL https://github.com/google/go-containerregistry/releases/download/${tag}/go-containerregistry_${os}_x86_64.tar.gz | sudo tar xzf - -C /usr/local/bin crane
echo "Installing crane @ ${tag} for ${os} on ${arch}"
curl -fsL https://github.com/google/go-containerregistry/releases/download/${tag}/go-containerregistry_${os}_${arch}.tar.gz | sudo tar xzf - -C /usr/local/bin crane
fi
# NB: username doesn't seem to matter.
Expand Down

0 comments on commit 67a61a0

Please sign in to comment.