Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6d1fc191a8 | ||
|
233f762873 | ||
|
b3f8d37ead | ||
|
f57f59fba9 | ||
|
8a54b39459 | ||
|
eb319b796f | ||
|
3c3575eb49 |
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
- package-ecosystem: gomod
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
@@ -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"]
|
||||
|
18
README.md
18
README.md
@@ -2,15 +2,13 @@
|
||||
|
||||
[GitHub Action](https://github.com/features/actions) for copying files and artifacts via SSH.
|
||||
|
||||

|
||||
|
||||
[](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
|
||||
|
Reference in New Issue
Block a user