All checks were successful
CI / test-and-build (push) Successful in 36s
Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
510 B
Bash
15 lines
510 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd ~/gitea
|
|
LABELS='ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-22.04,ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04'
|
|
if grep -q '^GITEA_RUNNER_LABELS=' .env; then
|
|
sed -i "s|^GITEA_RUNNER_LABELS=.*|GITEA_RUNNER_LABELS=${LABELS}|" .env
|
|
else
|
|
echo "GITEA_RUNNER_LABELS=${LABELS}" >> .env
|
|
fi
|
|
# Pre-pull job image
|
|
sudo docker pull ghcr.io/catthehacker/ubuntu:act-22.04
|
|
# Re-register so labels refresh cleanly
|
|
bash ./register-runner.sh
|
|
echo LABELS_OK
|