Skip to content

Commit 1e09daa

Browse files
dtannerimjasonh
andauthored
clarify crane download readme (#1533)
* clarify crane download readme * Update cmd/crane/README.md Co-authored-by: Jason Hall <[email protected]>
1 parent 8e08d51 commit 1e09daa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: cmd/crane/README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ A collection of useful things you can do with `crane` is [here](recipes.md).
1111

1212
### Install from Releases
1313
Download [latest release](https://github.com/google/go-containerregistry/releases/latest):
14+
```
15+
$ OS=Linux # or Darwin, Windows
16+
$ ARCH=x86_64 # or arm64, x86_64, armv6, i386, s390x
17+
$ curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" > go-containerregistry.tar.gz
18+
```
1419

20+
Download a specific version:
1521
```
16-
$ VERSION=TODO # Latest, or other
22+
$ VERSION=TODO # Version number without leading v
1723
$ OS=Linux # or Darwin, Windows
1824
$ ARCH=x86_64 # or arm64, x86_64, armv6, i386, s390x
19-
$ curl -sL "https://github.com/google/go-containerregistry/releases/download/v${VERSION}/go-containerregistry_${VERSION}_${OS}_${ARCH}.tar.gz" > go-containerregistry.tar.gz
25+
$ curl -sL "https://github.com/google/go-containerregistry/releases/download/v${VERSION}/go-containerregistry_${OS}_${ARCH}.tar.gz" > go-containerregistry.tar.gz
2026
```
2127

2228
We generate [SLSA 3 provenance](https://slsa.dev) using the OpenSSF's [slsa-framework/slsa-github-generator](https://github.com/slsa-framework/slsa-github-generator). To verify our release, install the verification tool from [slsa-framework/slsa-verifier#installation](https://github.com/slsa-framework/slsa-verifier#installation) and verify as follows:

0 commit comments

Comments
 (0)