Update version of Forgejo Runner
Some checks are pending
Some checks are pending
This commit is contained in:
parent
f304597070
commit
71fe38d581
1 changed files with 28 additions and 3 deletions
|
@ -869,11 +869,36 @@ chmod 600 ~/.ssh/config
|
|||
|
||||
```bash
|
||||
cd ~
|
||||
wget https://code.forgejo.org/forgejo/runner/releases/download/v0.2.11/forgejo-runner-0.2.11-linux-amd64
|
||||
chmod +x forgejo-runner-0.2.11-linux-amd64
|
||||
sudo mv forgejo-runner-0.2.11-linux-amd64 /usr/local/bin/forgejo-runner
|
||||
|
||||
# Get the latest version dynamically
|
||||
LATEST_VERSION=$(curl -s https://code.forgejo.org/api/v1/repos/forgejo/runner/releases | jq -r '.[0].tag_name')
|
||||
echo "Downloading Forgejo runner version: $LATEST_VERSION"
|
||||
|
||||
# Download the latest runner
|
||||
wget https://code.forgejo.org/forgejo/runner/releases/download/${LATEST_VERSION}/forgejo-runner-${LATEST_VERSION#v}-linux-amd64
|
||||
chmod +x forgejo-runner-${LATEST_VERSION#v}-linux-amd64
|
||||
sudo mv forgejo-runner-${LATEST_VERSION#v}-linux-amd64 /usr/local/bin/forgejo-runner
|
||||
```
|
||||
|
||||
**Alternative: Pin to Specific Version (Recommended for Production)**
|
||||
|
||||
If you prefer to pin to a specific version for stability, replace the dynamic download with:
|
||||
|
||||
```bash
|
||||
cd ~
|
||||
VERSION="v6.3.1" # Pin to specific version
|
||||
wget https://code.forgejo.org/forgejo/runner/releases/download/${VERSION}/forgejo-runner-${VERSION#v}-linux-amd64
|
||||
chmod +x forgejo-runner-${VERSION#v}-linux-amd64
|
||||
sudo mv forgejo-runner-${VERSION#v}-linux-amd64 /usr/local/bin/forgejo-runner
|
||||
```
|
||||
|
||||
**What this does**:
|
||||
- **Dynamic approach**: Downloads the latest stable Forgejo Actions runner
|
||||
- **Version pinning**: Allows you to specify a known-good version for production
|
||||
- **Makes the binary executable** and installs it system-wide for use by the SERVICE_USER
|
||||
|
||||
**Production Recommendation**: Use version pinning in production environments to ensure consistency and avoid unexpected breaking changes.
|
||||
|
||||
#### 7.2 Create Systemd Service
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Add table
Reference in a new issue