编程语言/Drone/scp:修订间差异
来自康健生活
创建页面,内容为“== 标题文本 == <syntaxhighlight lang="javascript"> kind: pipeline type: docker name: default steps: - 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…” |
|||
| (未显示同一用户的4个中间版本) | |||
| 第1行: | 第1行: | ||
== | == 描述 == | ||
[https://github.com/appleboy/drone-scp appleboy/drone-scp]: Copy files and artifacts via SSH using a binary, docker or Drone CI. | |||
== 示例 == | |||
<syntaxhighlight lang="yaml"> | |||
- 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"> | |||
- name: scp | - name: scp | ||
image: appleboy/drone-scp | image: appleboy/drone-scp | ||