'Generic Commit'

This commit is contained in:
Your Name
2025-06-01 17:37:45 +12:00
parent fcee3fd99d
commit ffd61cd754
11 changed files with 142 additions and 2 deletions

15
gitea-runner-docker/install.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "SERVER" "SERVICE" "TEMP_DIR" \
"GITEA_RUNNER_DIRECTORY" "ACT_RUNNER_VERSION" \
"GITEA_URL" "GITEA_TOKEN" "GITEA_RUNNER_NAME" "GITEA_RUNNER_LABELS" \
"CONTAINER_NAME"
mkdir -p "${GITEA_RUNNER_DIRECTORY}" || _die "Failed to create ${GITEA_RUNNER_DIRECTORY}"
./start.sh || _die "Failed to start"
echo "Installation complete for service ${SERVICE}."