Skip to content

Commit

Permalink
Bump tkn to latest version v0.34.0
Browse files Browse the repository at this point in the history
- Update the readme
- Update the choco directory to point to 0.34.0
  • Loading branch information
vinamra28 authored and tekton-robot committed Jan 12, 2024
1 parent 539557f commit 95548d3
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 28 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Download the latest binary executable for your operating system.
brew install tektoncd-cli
```

- Use [released tarball](https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Darwin_all.tar.gz)
- Use [released tarball](https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Darwin_all.tar.gz)

```shell
# Get the tar.xz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Darwin_all.tar.gz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Darwin_all.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tkn_0.33.0_Darwin_all.tar.gz -C /usr/local/bin tkn
sudo tar xvzf tkn_0.34.0_Darwin_all.tar.gz -C /usr/local/bin tkn
```

### Windows
Expand All @@ -43,13 +43,13 @@ choco install tektoncd-cli --confirm
scoop install tektoncd-cli
```

- Use [Powershell](https://docs.microsoft.com/en-us/powershell) [released zip](https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Windows_x86_64.zip)
- Use [Powershell](https://docs.microsoft.com/en-us/powershell) [released zip](https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Windows_x86_64.zip)

```powershell
#Create directory
New-Item -Path "$HOME/tektoncd/cli" -Type Directory
# Download file
Start-BitsTransfer -Source https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Windows_x86_64.zip -Destination "$HOME/tektoncd/cli/."
Start-BitsTransfer -Source https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Windows_x86_64.zip -Destination "$HOME/tektoncd/cli/."
# Uncompress zip file
Expand-Archive $HOME/tektoncd/cli/*.zip -DestinationPath C:\Users\Developer\tektoncd\cli\.
#Add to Windows `Environment Variables`
Expand All @@ -58,40 +58,40 @@ Expand-Archive $HOME/tektoncd/cli/*.zip -DestinationPath C:\Users\Developer\tekt

### Linux tarballs

* [Linux AMD 64](https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_x86_64.tar.gz)
* [Linux AMD 64](https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_x86_64.tar.gz)

```shell
# Get the tar.xz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_x86_64.tar.gz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_x86_64.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tkn_0.33.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
sudo tar xvzf tkn_0.34.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
```

* [Linux AARCH 64](https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_aarch64.tar.gz)
* [Linux AARCH 64](https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_aarch64.tar.gz)

```shell
# Get the tar.xz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_aarch64.tar.gz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_aarch64.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tkn_0.33.0_Linux_aarch64.tar.gz -C /usr/local/bin/ tkn
sudo tar xvzf tkn_0.34.0_Linux_aarch64.tar.gz -C /usr/local/bin/ tkn
```

* [Linux IBM Z](https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_s390x.tar.gz)
* [Linux IBM Z](https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_s390x.tar.gz)

```shell
# Get the tar.gz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_s390x.tar.gz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_s390x.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tkn_0.33.0_Linux_s390x.tar.gz -C /usr/local/bin/ tkn
sudo tar xvzf tkn_0.34.0_Linux_s390x.tar.gz -C /usr/local/bin/ tkn
```

* [Linux IBM P](https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_ppc64le.tar.gz)
* [Linux IBM P](https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_ppc64le.tar.gz)

```shell
# Get the tar.gz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Linux_ppc64le.tar.gz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Linux_ppc64le.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tkn_0.33.0_Linux_ppc64le.tar.gz -C /usr/local/bin/ tkn
sudo tar xvzf tkn_0.34.0_Linux_ppc64le.tar.gz -C /usr/local/bin/ tkn
```

### Linux RPMs
Expand All @@ -111,12 +111,12 @@ Expand-Archive $HOME/tektoncd/cli/*.zip -DestinationPath C:\Users\Developer\tekt
dnf install tektoncd-cli
```

* [Binary RPM package](https://github.com/tektoncd/cli/releases/download/v0.33.0/tektoncd-cli-0.33.0_Linux-64bit.rpm)
* [Binary RPM package](https://github.com/tektoncd/cli/releases/download/v0.34.0/tektoncd-cli-0.34.0_Linux-64bit.rpm)

On any other RPM based distros, you can install the rpm directly:

```shell
rpm -Uvh https://github.com/tektoncd/cli/releases/download/v0.33.0/tektoncd-cli-0.33.0_Linux-64bit.rpm
rpm -Uvh https://github.com/tektoncd/cli/releases/download/v0.34.0/tektoncd-cli-0.34.0_Linux-64bit.rpm
```

### Linux Debs
Expand All @@ -134,13 +134,13 @@ Expand-Archive $HOME/tektoncd/cli/*.zip -DestinationPath C:\Users\Developer\tekt

The PPA may work with older releases, but that hasn't been tested.

* [Binary DEB package](https://github.com/tektoncd/cli/releases/download/v0.33.0/tektoncd-cli-0.33.0_Linux-64bit.deb)
* [Binary DEB package](https://github.com/tektoncd/cli/releases/download/v0.34.0/tektoncd-cli-0.34.0_Linux-64bit.deb)

On any other Debian or Ubuntu based distro, you can simply install the binary package directly with `dpkg`:

```shell
curl -LO https://github.com/tektoncd/cli/releases/download/v0.33.0/tektoncd-cli-0.33.0_Linux-64bit.deb
dpkg -i tektoncd-cli-0.33.0_Linux-64bit.deb
curl -LO https://github.com/tektoncd/cli/releases/download/v0.34.0/tektoncd-cli-0.34.0_Linux-64bit.deb
dpkg -i tektoncd-cli-0.34.0_Linux-64bit.deb
```

### NixOS/Nix
Expand Down
2 changes: 1 addition & 1 deletion choco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ To update this package to a newer version of `tkn`, the following updates should

* Edit the version property in [`tektoncd-cli.nuspec`](https://github.com/tektoncd/cli/blob/main/choco/tektoncd-cli.nuspec#L5) to the latest available version of `tkn`.
* Change the [version in the download url for the Windows `tkn` zip](https://github.com/tektoncd/cli/blob/main/choco/tools/chocolateyinstall.ps1#L4) to the latest available version of `tkn`.
* Update the [checksum for the package](https://github.com/tektoncd/cli/blob/main/choco/tools/chocolateyinstall.ps1#L11) by getting the sha256 of the zip file. Example: `Get-FileHash '.\tkn_0.33.0_Windows_x86_64.zip'`. The zip can be downloaded using the release download url from GitHub; just remember to change the version numbers in the url: https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Windows_x86_64.zip.
* Update the [checksum for the package](https://github.com/tektoncd/cli/blob/main/choco/tools/chocolateyinstall.ps1#L11) by getting the sha256 of the zip file. Example: `Get-FileHash '.\tkn_0.34.0_Windows_x86_64.zip'`. The zip can be downloaded using the release download url from GitHub; just remember to change the version numbers in the url: https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Windows_x86_64.zip.
* Run `choco pack` in the `choco` directory to build the package
* Run `choco push` to push the built package and make it available for download (NOTE: You will need permissions to push the package/to be authenticated. Reach out to [@danielhelfand](https://github.com/danielhelfand) for more details.)
2 changes: 1 addition & 1 deletion choco/tektoncd-cli.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>tektoncd-cli</id>
<version>0.33.0</version>
<version>0.34.0</version>
<title>Tekton CLI (tkn)</title>
<authors>Tekton authors, see https://github.com/tektoncd/cli/graphs/contributors</authors>
<projectUrl>https://github.com/tektoncd/cli</projectUrl>
Expand Down
4 changes: 2 additions & 2 deletions choco/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageName = 'tektoncd-cli'
$url64 = 'https://github.com/tektoncd/cli/releases/download/v0.33.0/tkn_0.33.0_Windows_x86_64.zip'
$url64 = 'https://github.com/tektoncd/cli/releases/download/v0.34.0/tkn_0.34.0_Windows_x86_64.zip'

$packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
url64bit = $url64
softwareName = 'tektoncd-cli*'
checksum64 = '85efa3c755c235b381e1591d26911d163b39f165879dcf5a4f6f4d9f18d7ddef'
checksum64 = 'b87ceebeea935522faab40d420d5893d52de01437fb386eeab9556167e6b20fe'
checksumType64 = 'sha256'
}

Expand Down
8 changes: 8 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ Further documentation available:

## Releases

### v0.34

- **Latest Release**: [v0.34.0][v0-34-0] (2023-01-12) ([docs][v0-34-0-docs])
- **Initial Release**: [v0.34.0][v0-34-0] (2024-01-12) ([docs][v0-34-0-docs])
- **End of Life**: 2024-02-11

### v0.33

- **Latest Release**: [v0.33.0][v0-33-0] (2023-11-16) ([docs][v0-33-0-docs])
Expand Down Expand Up @@ -108,6 +114,7 @@ Older releases are EOL and available on [GitHub][tekton-cli-releases].
https://github.com/tektoncd/community/blob/main/standards.md#release-notes
[tekton-release-process]: RELEASE_PROCESS.md

[v0-34-0]: https://github.com/tektoncd/cli/releases/tag/v0.34.0
[v0-33-0]: https://github.com/tektoncd/cli/releases/tag/v0.33.0
[v0-32-2]: https://github.com/tektoncd/cli/releases/tag/v0.32.2
[v0-32-0]: https://github.com/tektoncd/cli/releases/tag/v0.32.0
Expand All @@ -122,6 +129,7 @@ Older releases are EOL and available on [GitHub][tekton-cli-releases].
[v0-26-0]: https://github.com/tektoncd/cli/releases/tag/v0.26.0
[v0-25-0]: https://github.com/tektoncd/cli/releases/tag/v0.25.0

[v0-34-0-docs]: https://github.com/tektoncd/cli/tree/v0.34.0/docs
[v0-33-0-docs]: https://github.com/tektoncd/cli/tree/v0.33.0/docs
[v0-32-2-docs]: https://github.com/tektoncd/cli/tree/v0.32.2/docs
[v0-32-0-docs]: https://github.com/tektoncd/cli/tree/v0.32.0/docs
Expand Down
6 changes: 4 additions & 2 deletions tekton/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
- name: packages
value: ./pkg/... ./cmd/...
- name: version
value: 1.20
value: "1.20"
- name: flags
value: -v -mod=vendor
workspaces:
Expand All @@ -82,7 +82,7 @@ spec:
- name: package
value: $(params.package)
- name: version
value: 1.20
value: "1.20"
- name: flags
value: -v -mod=vendor
workspaces:
Expand All @@ -101,6 +101,8 @@ spec:
value: $(params.github-token-secret-key)
- name: image
value: goreleaser/goreleaser:v1.23.0
- name: flags
value: --timeout=60m
workspaces:
- name: source
workspace: shared-workspace

0 comments on commit 95548d3

Please sign in to comment.