12 lines
385 B
Bash
Executable File
12 lines
385 B
Bash
Executable File
#!/bin/sh
|
|
# Installs the Gitea runner from gitea.com.
|
|
set -eu
|
|
v=5.4.1
|
|
f=gitea-runner-$v-linux-amd64.xz
|
|
cd "$(mktemp -d)"
|
|
curl -fsSLO "https://gitea.com/gitea/runner/releases/download/v$v/$f"
|
|
curl -fsSLO "https://gitea.com/gitea/runner/releases/download/v$v/$f.sha256"
|
|
sha256sum -c "$f.sha256"
|
|
xz -dc "$f" > "$BUILDROOT/usr/bin/gitea-runner"
|
|
chmod 755 "$BUILDROOT/usr/bin/gitea-runner"
|