7 Commits

Author SHA1 Message Date
Bo-Yi Wu
6d1fc191a8 chore: add dependabot
Some checks failed
scp files / Build (push) Failing after 5s
2022-06-15 22:08:26 +08:00
Bo-Yi Wu
233f762873 fix(ssh): OpenSSH 8.8+ RSA keys incompatibility
See: https://github.com/appleboy/drone-scp/issues/130
2022-06-15 22:06:41 +08:00
Bo-Yi Wu
b3f8d37ead Update README.md 2022-02-24 11:13:59 +08:00
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
3 changed files with 20 additions and 12 deletions

10
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly

View File

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

View File

@@ -2,15 +2,13 @@
[GitHub Action](https://github.com/features/actions) for copying files and artifacts via SSH.
![ssh key](./images/copy-multiple-file.png)
[![Actions Status](https://github.com/appleboy/scp-action/workflows/scp%20files/badge.svg)](https://github.com/appleboy/scp-action/actions)
**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 +33,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 +68,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 +82,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 +110,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 +124,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 +139,7 @@ remove the specified number of leading path elements
strip_components: 1
```
old target structure:
Old target structure:
```sh
foobar
@@ -150,7 +148,7 @@ foobar
└── b.txt
```
new target structure:
New target structure:
```sh
foobar