diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59d584876..21c7cb938 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,7 @@ jobs: publish-docker-latest: runs-on: ubuntu-latest + needs: [publish-nuget] if: "true" env: CR_PAT: ${{ secrets.CR_PAT }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 858af33fc..598510ac2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ ## Released +### v1.4.1 + +#### Bug fixes + +* `set-session`: Fixed bug when setting a session when using the pre-filter which resulted in the wrong session being activated + ### v1.4.0 #### PSc8y (PowerShell) diff --git a/docker/pwsh.dockerfile b/docker/pwsh.dockerfile index 0c14db3b7..3573c3798 100644 --- a/docker/pwsh.dockerfile +++ b/docker/pwsh.dockerfile @@ -3,6 +3,7 @@ FROM mcr.microsoft.com/powershell ENV C8Y_SESSION_HOME=/sessions VOLUME [ "/sessions" ] -RUN pwsh -c "Install-Module PSc8y -Repository PSGallery -AllowClobber -Force" +RUN pwsh -c "Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted; " \ + && pwsh -c "Install-Module PSc8y -Repository PSGallery -AllowClobber -Force" ENTRYPOINT [ "pwsh", "-NoExit", "-c", "Import-Module PSc8y" ] diff --git a/docs/_docs/1-bash-installation.md b/docs/_docs/1-bash-installation.md index 092a7b621..3bab31d4c 100644 --- a/docs/_docs/1-bash-installation.md +++ b/docs/_docs/1-bash-installation.md @@ -57,7 +57,7 @@ To make the installation and future updates easier, a script is provided in the **Install a specific version** ```sh - c8y-update v1.4.0 + c8y-update v1.4.1 ``` The list of versions is available from the [github release page](https://github.com/reubenmiller/go-c8y-cli/releases) @@ -183,7 +183,7 @@ However if you don't install the `c8y.profile.sh` script or the zsh `c8y` plugin ```plaintext Cumulocity command line tool - v1.4.0 -- HEAD + v1.4.1 -- HEAD ``` 1. Add completions to your profile: diff --git a/docs/_docs/1-docker-usage.md b/docs/_docs/1-docker-usage.md index 72a623801..3cb9b9134 100644 --- a/docs/_docs/1-docker-usage.md +++ b/docs/_docs/1-docker-usage.md @@ -145,12 +145,12 @@ If you have already activated a c8y session on a command console, you can re-use You have to execute a docker pull if you want to re-check if there is a newer image available (i.e. also tagged with latest). -You can also specify the version that you want to try out by replacing `latest` with the version number, i.e. `1.4.0`. +You can also specify the version that you want to try out by replacing `latest` with the version number, i.e. `1.4.1`. ```sh # update to the latest image docker pull ghcr.io/reubenmiller/c8y-zsh:latest # use a known version -docker pull ghcr.io/reubenmiller/c8y-zsh:1.4.0 +docker pull ghcr.io/reubenmiller/c8y-zsh:1.4.1 ``` \ No newline at end of file diff --git a/pkg/cmd/listSessionCmd.manual.go b/pkg/cmd/listSessionCmd.manual.go index a6a3183c1..0e5e949d8 100644 --- a/pkg/cmd/listSessionCmd.manual.go +++ b/pkg/cmd/listSessionCmd.manual.go @@ -182,8 +182,8 @@ func (n *listSessionCmd) listSession(cmd *cobra.Command, args []string) error { return nil } - if idx >= 0 && idx < len(config.Sessions) { - fmt.Printf("%s", config.Sessions[idx].Path) + if idx >= 0 && idx < len(filteredSessions) { + fmt.Printf("%s", filteredSessions[idx].Path) } else { fmt.Println("") } diff --git a/tools/PSc8y/PSc8y.psd1 b/tools/PSc8y/PSc8y.psd1 index c299d47ae..6758b9643 100644 --- a/tools/PSc8y/PSc8y.psd1 +++ b/tools/PSc8y/PSc8y.psd1 @@ -12,7 +12,7 @@ RootModule = './PSc8y.psm1' # Version number of this module. -ModuleVersion = '1.4.0' +ModuleVersion = '1.4.1' # Supported PSEditions CompatiblePSEditions = @(