编程语言/Drone/scp:修订间差异
来自康健生活
| 第4行: | 第4行: | ||
== 示例 == | == 示例 == | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
</syntaxhighlight> | |||
- name: code-scp | |||
image: appleboy/drone-scp | |||
settings: | |||
host: 192.168.1.1 | |||
username: root | |||
password: 12345678 | |||
port: 22 | |||
# 转移到宿主机的某个目录下 | |||
target: data/fatest | |||
# 拷贝当前工作区内的相关的所有文件 | |||
source: .</syntaxhighlight> | |||
数据隔离 | |||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
- name: scp | - name: scp | ||
image: appleboy/drone-scp | image: appleboy/drone-scp | ||
2026年3月18日 (三) 11:30的版本
描述
appleboy/drone-scp: Copy files and artifacts via SSH using a binary, docker or Drone CI.
示例
- name: code-scp
image: appleboy/drone-scp settings: host: 192.168.1.1 username: root password: 12345678 port: 22 # 转移到宿主机的某个目录下 target: data/fatest # 拷贝当前工作区内的相关的所有文件 source: .</syntaxhighlight>
数据隔离
- name: scp
image: appleboy/drone-scp
pull: always
settings:
debug: true
source:
- dist/
host:
from_secret: DRONE_HOST
username:
from_secret: DRONE_NAME
port:
from_secret: DRONE_PORT
password:
from_secret: DRONE_PSW
target:
from_secret: DRONE_DICT
when:
branch:
include:
- master
event:
- push
- merge
No categories