Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 00c9e93efa | |||
| 779a7240f2 | |||
| 8a78c724ed | |||
| 77ab8b6716 | |||
| 67a61a0d45 |
@@ -15,7 +15,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
go-version: 1.20.x
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: imjasonh/setup-crane@main
|
||||
@@ -27,9 +27,9 @@ jobs:
|
||||
- name: Install old release
|
||||
uses: imjasonh/setup-crane@main
|
||||
with:
|
||||
version: v0.4.0
|
||||
version: v0.12.0
|
||||
- name: Check installed version
|
||||
run: crane version | grep 0.4.0
|
||||
run: crane version | grep 0.12.0
|
||||
|
||||
- name: Install from tip
|
||||
uses: imjasonh/setup-crane@main
|
||||
|
||||
+7
-2
@@ -35,10 +35,15 @@ runs:
|
||||
if [[ $os == "macOS" ]]; then
|
||||
os="Darwin"
|
||||
fi
|
||||
|
||||
arch=$(uname -m)
|
||||
if [[ "$arch" =~ (aarch64|arm64) ]] ; then
|
||||
arch=arm64
|
||||
fi
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user