Skip to main content

Installation

Use layer87-labs/relctl-action to install relctl on your runner. The action resolves the version, verifies the SHA-256 checksum, and adds the binary to PATH.

- uses: layer87-labs/relctl-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

Pin to a specific version:

- uses: layer87-labs/relctl-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
relctl-version: "1.2.3"

Inputs

InputRequiredDefaultDescription
github-tokenyesUsed for release API calls (${{ secrets.GITHUB_TOKEN }})
relctl-versionno"latest"Version to install. Semver tag (e.g. "1.2.3") or "latest".

Supported platforms

OSArchitecture
Linuxamd64
Linuxarm64
macOSamd64
macOSarm64 (M1+)
Windowsamd64

Manual download

# Linux amd64
curl -fsSL -o relctl \
https://github.com/layer87-labs/relctl/releases/latest/download/relctl_linux-amd64
chmod +x relctl
sudo mv relctl /usr/local/bin/relctl

Available suffixes:

PlatformSuffix
Linux x86_64linux-amd64
Linux ARM64linux-arm64
macOS x86_64darwin-amd64
macOS M1+darwin-arm64
Windows x86_64windows-amd64.exe

Verify checksum

curl -fsSL -o sha256sum.txt \
https://github.com/layer87-labs/relctl/releases/latest/download/sha256sum.txt
sha256sum --check --ignore-missing sha256sum.txt

Smoke test

relctl --version

Required environment variables

GitHub Actions

Set automatically by the runner. GITHUB_TOKEN must be passed explicitly via env:.

VariableDescriptionRequired
CISet to true by the runneryes
GITHUB_SERVER_URLGitHub server URLyes
GITHUB_REPOSITORYowner/repoyes
GITHUB_TOKENPass via env: in the stepyes

Jenkins Pipeline

VariableDescriptionRequired
CISet automatically by Jenkinsyes
JENKINS_URLSet automatically by Jenkinsyes
GIT_URLSet by the GitHub Pluginyes
GITHUB_REPOSITORYMust be set manually (owner/repo)yes
GITHUB_TOKENMust be set via credentials bindingyes
tip

Jenkins environment variables are listed at ${YOUR_JENKINS_HOST}/env-vars.html


Persistent connection (non-CI use)

For local use or Jenkins pipelines without environment variable support, use relctl connect to create an encrypted .rc file:

relctl connect github \
--repository my-org/my-repo \
--token ghp_your_token

Verify the connection:

relctl connect check

Remove stored credentials:

relctl connect remove