Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update ORAS CLI version to v1.2.0 in installation document #324

Merged
merged 5 commits into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions versioned_docs/version-1.2/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ brew install oras
Install `oras` using [Snap](https://snapcraft.io/store):

```bash
snap install oras
snap install oras --classic
```

## Release artifacts
Expand All @@ -32,7 +32,7 @@ Install ORAS from the latest [release artifacts](https://github.com/oras-project
If you want to install ORAS on an AMD64-based Linux machine, run the following command:

```bash
VERSION="1.1.0"
VERSION="1.2.0"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
Expand All @@ -41,7 +41,7 @@ rm -rf oras_${VERSION}_*.tar.gz oras-install/
```
:::note

If you want to install ORAS on an ARM64-based Linux machine, you can download it from `https://github.com/oras-project/oras/releases/download/v1.1.0/oras_1.1.0_linux_arm64.tar.gz`.
If you want to install ORAS on an ARM64-based Linux machine, you can download it from `https://github.com/oras-project/oras/releases/download/v1.2.0/oras_1.2.0_linux_arm64.tar.gz`.

:::

Expand All @@ -50,7 +50,7 @@ If you want to install ORAS on an ARM64-based Linux machine, you can download it
If you want to install ORAS on a Mac computer with Apple silicon, run the following command:

```bash
VERSION="1.1.0"
VERSION="1.2.0"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_darwin_arm64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
Expand All @@ -59,7 +59,7 @@ rm -rf oras_${VERSION}_*.tar.gz oras-install/
```
:::note

If you want to install ORAS on an Intel-based Mac, you can download it from `https://github.com/oras-project/oras/releases/download/v1.1.0/oras_1.1.0_darwin_amd64.tar.gz`.
If you want to install ORAS on an Intel-based Mac, you can download it from `https://github.com/oras-project/oras/releases/download/v1.2.0/oras_1.2.0_darwin_amd64.tar.gz`.

:::

Expand All @@ -68,13 +68,13 @@ If you want to install ORAS on an Intel-based Mac, you can download it from `htt
- You can install ORAS CLI on Windows using [WinGet (Windows Package Manager)](https://github.com/microsoft/winget-pkgs):

```bash
winget install oras --version 1.1.0
winget install oras --version 1.2.0
```

- Alternatively, you can install ORAS CLI using `.exe` installer. Add `%USERPROFILE%\bin\` to your `PATH` environment variable so that `oras.exe` can be found.

```cmd
set VERSION="1.1.0"
set VERSION="1.2.0"
curl.exe -sLO "https://github.com/oras-project/oras/releases/download/v%VERSION%/oras_%VERSION%_windows_amd64.zip"
tar.exe -xvzf oras_%VERSION%_windows_amd64.zip
mkdir -p %USERPROFILE%\bin\
Expand All @@ -87,7 +87,7 @@ set PATH=%USERPROFILE%\bin\;%PATH%
A public Docker image containing the CLI is available on [GitHub Container Registry](https://github.com/orgs/oras-project/packages/container/package/oras):

```
docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.1.0 help
docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.2.0 help
```
:::note

Expand Down Expand Up @@ -119,9 +119,9 @@ nix-env -iA nixpkgs.oras

```shell
$ oras version
Version: 1.1.0
Go version: go1.21.0
Git commit: 7079c468a06fb5815c99395eb4aaf46dd459d3fa
Version: 1.2.0
Go version: go1.22.3
Git commit: dcef719e208a9b226b15bc6512ad729a7dd93270
Git tree state: clean
```

Expand Down