fix(ci): fournir bash au runner recette local

This commit is contained in:
Manus AI
2026-08-18 08:49:16 +00:00
parent d8b24f8968
commit 87cc629d81
3 changed files with 9 additions and 2 deletions

View File

@@ -8,12 +8,14 @@ readonly RUNNER_DIR="/opt/manus-deploy/gitea-runner"
readonly GITEA_CONTAINER="gitea"
readonly GITEA_URL="https://git.recette.santinova-soft.org"
readonly RUNNER_NAME="recette-docker-runner"
readonly RUNNER_LABELS="ubuntu-latest:docker://node:20-alpine"
readonly RUNNER_IMAGE="gitea-runner-node:20"
readonly RUNNER_LABELS="ubuntu-latest:docker://${RUNNER_IMAGE}"
readonly LABEL_FILE="${RUNNER_DIR}/labels"
install -d -m 0750 "${RUNNER_DIR}"
install -m 0640 "${SCRIPT_DIR}/gitea-act-runner-config.yaml" "${RUNNER_DIR}/config.yaml"
install -D -m 0644 "${SCRIPT_DIR}/gitea-act-runner.service" /etc/systemd/system/gitea-act-runner.service
docker build --tag "${RUNNER_IMAGE}" --file "${SCRIPT_DIR}/Dockerfile.gitea-runner" "${APP_DIR}"
# Migration unique : les versions antérieures enregistraient le runner dans APP_DIR.
if [[ ! -f "${RUNNER_DIR}/.runner" && -f "${APP_DIR}/.runner" ]]; then