scp-action
scp-action copied to clipboard
Temp archive is not removed on self-hosted agent
When a self hosted agent is used, a temporary tar file is not removed after copying to target server
drone-scp version: 1.8.0
tar all files into /tmp/aQdQqvYKCM.tar.gz
remote server os type is unix
scp file to server.
create folder /xxx/yyy
untar file aQdQqvYKCM.tar.gz
remove file aQdQqvYKCM.tar.gz
As we see, it's only removed on the target server, not the agent.
This causes the self hosted agent to run out of disk space eventually.