8 Commits

Author SHA1 Message Date
Bo-Yi Wu
f57f59fba9 chore(drone-scp): upgrade to 1.6.3
Some checks failed
scp files / Build (push) Failing after 4s
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-10-23 18:49:52 +08:00
Bo-Yi Wu
8a54b39459 chore: replace ADD with COPY 2021-02-13 10:57:10 +08:00
Dan Tsekhanskiy
eb319b796f Minor typo/grammar fixes (#48)
Thanks for making this action! Noticed a few grammar/typos when going through the README.
2021-02-01 11:41:29 +08:00
Bjørn Wikkeling
3c3575eb49 fixed typo (#44) 2020-12-26 06:35:19 +08:00
Bo-Yi Wu
edc8ec9139 chore: bump drone-scp to v1.6.2
Some checks failed
scp files / Build (push) Failing after 5s
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-06-15 16:04:17 +08:00
Bo-Yi Wu
167d6d7ff4 try the latest version
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-06-15 16:00:17 +08:00
Bo-Yi Wu
ecd6a3623b Create .env 2020-06-15 15:33:59 +08:00
Bo-Yi Wu
31b514c281 fix typo 2020-06-05 09:06:01 +08:00
2 changed files with 11 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
FROM appleboy/drone-scp:1.6.1-linux-amd64
FROM appleboy/drone-scp:1.6.3-linux-amd64
ADD entrypoint.sh /entrypoint.sh
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -6,11 +6,11 @@
[![Actions Status](https://github.com/appleboy/scp-action/workflows/scp%20files/badge.svg)](https://github.com/appleboy/scp-action/actions)
**Importment**: Only support **Linux** container.
**Important**: Only support **Linux** [docker](https://www.docker.com/) container.
## Usage
copy files and artifacts via SSH as blow.
Copy files and artifacts via SSH:
```yaml
name: scp files
@@ -35,7 +35,7 @@ jobs:
## Input variables
see the [action.yml](./action.yml) file for more detail imformation.
See the [action.yml](./action.yml) file for more detail information.
* host - scp remote host
* port - scp remote port, default is `22`
@@ -70,7 +70,7 @@ SSH Proxy Setting:
### Example
Copy file via ssh password
Copy file via a SSH password:
```yaml
- name: copy file via ssh password
@@ -84,7 +84,7 @@ Copy file via ssh password
target: "test"
```
Copy file via ssh key
Copy file via a SSH key:
```yaml
- name: copy file via ssh key
@@ -112,7 +112,7 @@ Example configuration for ignore list:
target: "test"
```
Example configuration for multiple server
Example configuration for multiple servers:
```diff
uses: appleboy/scp-action@master
@@ -126,7 +126,7 @@ Example configuration for multiple server
target: "test"
```
remove the specified number of leading path elements
Remove the specified number of leading path elements:
```yaml
- name: remove the specified number of leading path elements
@@ -141,7 +141,7 @@ remove the specified number of leading path elements
strip_components: 1
```
old target structure:
Old target structure:
```sh
foobar
@@ -150,7 +150,7 @@ foobar
└── b.txt
```
new target structure:
New target structure:
```sh
foobar