From 7a7d52b065152a1b6c3d038f6a42b24ec476b96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Svantesson?= Date: Sat, 6 Apr 2024 14:32:42 +0200 Subject: [PATCH] fix: simplify install instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MÃ¥rten Svantesson --- hack/changelog-header.md | 52 ++++++++++------------------------------ 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/hack/changelog-header.md b/hack/changelog-header.md index 7ac6acb3b6..fa40e72a64 100644 --- a/hack/changelog-header.md +++ b/hack/changelog-header.md @@ -3,70 +3,44 @@ ### amd64 ```shell -# Download the archive and the cosign generated signature -curl -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-amd64.tar.gz -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-amd64.tar.gz.sig -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-amd64.tar.gz.pem - -# Install cosign: https://docs.sigstore.dev/cosign/installation -# Verify using cosign -COSIGN_EXPERIMENTAL=1 cosign verify-blob --certificate jx-linux-amd64.tar.gz.pem --signature jx-linux-amd64.tar.gz.sig jx-linux-amd64.tar.gz - -tar -zxvf jx-linux-amd64.tar.gz +curl -L https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-amd64.tar.gz | tar xzv sudo mv jx /usr/local/bin ``` ### arm ```shell -# Download the archive and the cosign generated signature -curl -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm.tar.gz -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm.tar.gz.sig -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm.tar.gz.pem - -# Install cosign: https://docs.sigstore.dev/cosign/installation -# Verify using cosign -COSIGN_EXPERIMENTAL=1 cosign verify-blob --certificate jx-linux-arm.tar.gz.pem --signature jx-linux-arm.tar.gz.sig jx-linux-arm.tar.gz -tar -zxvf jx-linux-arm.tar.gz +curl -L https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm.tar.gz | tar xzv sudo mv jx /usr/local/bin ``` ### arm64 ```shell -# Download the archive and the cosign generated signature -curl -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm64.tar.gz -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm64.tar.gz.sig -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm64.tar.gz.pem - -# Install cosign: https://docs.sigstore.dev/cosign/installation -# Verify using cosign -COSIGN_EXPERIMENTAL=1 cosign verify-blob --certificate jx-linux-arm64.tar.gz.pem --signature jx-linux-arm64.tar.gz.sig jx-linux-arm64.tar.gz - -tar -zxvf jx-linux-arm64.tar.gz +curl -L https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-linux-arm64.tar.gz | tar xzv sudo mv jx /usr/local/bin ``` ## macOS -### amd64 +### Using homebrew ```shell -# Download the archive and the cosign generated signature -curl -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-amd64.tar.gz -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-amd64.tar.gz.sig -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-amd64.tar.gz.pem +brew install --no-quarantine --cask jenkins-x/jx/jx +``` + +### Using curl -# Install cosign: https://docs.sigstore.dev/cosign/installation -# Verify using cosign -COSIGN_EXPERIMENTAL=1 cosign verify-blob --certificate jx-darwin-amd64.tar.gz.pem --signature jx-darwin-amd64.tar.gz.sig jx-darwin-amd64.tar.gz +#### amd64 -tar -zxvf jx-darwin-amd64.tar.gz +```shell +curl -L https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-amd64.tar.gz | tar xzv sudo mv jx /usr/local/bin ``` -### arm64 +#### arm64 ```shell -# Download the archive and the cosign generated signature -curl -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-arm64.tar.gz -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-arm64.tar.gz.sig -LO https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-arm64.tar.gz.pem - -# Install cosign: https://docs.sigstore.dev/cosign/installation -# Verify using cosign -COSIGN_EXPERIMENTAL=1 cosign verify-blob --certificate jx-darwin-arm64.tar.gz.pem --signature jx-darwin-arm64.tar.gz.sig jx-darwin-arm64.tar.gz - -tar -zxvf jx-darwin-arm64.tar.gz +curl -L https://github.com/jenkins-x/jx/releases/download/v{{.Version}}/jx-darwin-arm64.tar.gz | tar xzv sudo mv jx /usr/local/bin ```