appleboy / appleboy/scp-action
drone-scp error: Process exited with status 1
Open
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 1.6k
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have this simple setup:
- name: Upload build files to VPS via SSH
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
rm: true
source: "./build/web/*"
target: "${{ secrets.SCP_TARGET }}"
strip_components: 2
But it ends up with this error:
tar all files into /tmp/RmOmwBuqmG.tar.gz
scp file to server.
Remove target folder: ***
drone-scp error: Process exited with status 1
drone-scp rollback: remove all target tmp file
remove file RmOmwBuqmG.tar.gz
2023/09/27 00:54:42 Process exited with status 1
My SCP_TARGET is /var/www/example.com/html.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the workflow step using appleboy/scp-action@v0.1.4 and the transfer log around the tar, SCP, and target-removal commands. Check the configured SCP_TARGET path and the action's handling of rm and strip_components; done means the build files upload successfully to /var/www/example.com/html without the status 1 rollback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, shell
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100