2 Commits

Author SHA1 Message Date
Bo-Yi Wu
2e28e2ddc9 chore: bump drone-scp to 1.5.3
Some checks failed
scp files / Build (push) Failing after 6s
2019-09-29 01:43:03 +08:00
Bo-Yi Wu
f8189f0fbf chore(scp): add overwrite and tar_tmp_path 2019-09-29 01:42:21 +08:00
3 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
FROM appleboy/drone-scp:1.5.2-linux-amd64
FROM appleboy/drone-scp:1.5.3-linux-amd64
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

View File

@@ -38,6 +38,8 @@ see the [action.yml](./action.yml) file for more detail imformation.
* source - scp file list
* rm - remove target folder before upload data
* strip_components - remove the specified number of leading path elements.
* overwrite - use `--overwrite` flag with tar
* tar_tmp_path - temporary path for tar file on the dest host
### Example

View File

@@ -29,6 +29,11 @@ inputs:
strip_components:
description: 'remove the specified number of leading path elements'
default: 0
overwrite:
description: 'use `--overwrite` flag with tar'
default: false
tar_tmp_path:
description: 'temporary path for tar file on the dest host'
runs:
using: 'docker'
image: 'Dockerfile'