fix(ci): run trivy via SSH on web (docker not in Gitea runner) #2
Reference in New Issue
Block a user
Delete Branch "fix/trivy-via-ssh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Workflow #156 упал с
docker: command not found— Gitea Actions runner для этого проекта не содержит docker CLI. Перенёс build + trivy scan в ту же SSH-сессию что и deploy, как сделано в anotherreflections-website-v2 (там это работает).Original workflow ran 'docker build + docker run trivy' inside the Gitea Actions runner — but that container has no docker CLI ('docker: command not found'). Move both build and scan into the same SSH session as deploy, where docker is available natively. Mirrors how anotherreflections-website-v2 does it (single SSH session with build → scan → up -d → health → prune).