ci: убрать sudo в Deploy job (act-runner всегда root)
Some checks failed
CI / Lint (pull_request) Failing after 1m9s
CI / Build (pull_request) Successful in 2m11s
CI / Secret scan (pull_request) Successful in 2m33s
CI / PR size check (pull_request) Successful in 7s
CI / Deploy to S1 + S2 (pull_request) Has been skipped

act-runner от Gitea Actions запускает контейнеры под root БЕЗ sudo.
sudo: command not found → Install rsync падает → весь Deploy валится.
Внутри контейнера мы и так root, apt-get работает напрямую.
This commit is contained in:
МИН 2026-05-29 07:45:21 +03:00
parent 615eac86fe
commit ac06170925

View File

@ -131,7 +131,7 @@ jobs:
echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
- name: Install rsync
run: sudo apt-get update -qq && sudo apt-get install -y rsync openssh-client
run: apt-get update -qq && apt-get install -y rsync openssh-client
- name: Deploy to S1 (85.175.7.40:1998)
run: |
rsync -az --delete-after --human-readable \