When you use a runner with the Shell executor, you can download and install
release-cli manually for your supported OS and architecture.
Once installed, the
release keyword is available to use in your CI/CD jobs.
Download the binary for your system from S3, in the following example for amd64 systems:
curl --location --output /usr/local/bin/release-cli "https://release-cli-downloads.s3.amazonaws.com/latest/release-cli-linux-amd64"
Or from the GitLab Package Registry:
curl --location --output /usr/local/bin/release-cli "https://gitlab.com/api/v4/projects/gitlab-org%2Frelease-cli/packages/generic/release-cli/latest/release-cli-darwin-amd64"
Give it permissions to execute:
sudo chmod +x /usr/local/bin/release-cli
$ release-cli -v release-cli version 0.6.0
Create a folder somewhere in your system, for example
New-Item -Path 'C:\GitLab\Release-CLI\bin' -ItemType Directory
Download the executable file:
PS C:\> Invoke-WebRequest -Uri "https://release-cli-downloads.s3.amazonaws.com/latest/release-cli-windows-amd64.exe" -OutFile "C:\GitLab\Release-CLI\bin\release-cli.exe" Directory: C:\GitLab\Release-CLI Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 3/16/2021 4:17 AM bin
Add the directory to your
$env:PATH += ";C:\GitLab\Release-CLI\bin"
PS C:\> release-cli -v release-cli version 0.6.0