编程语言/Drone/ssh:修订间差异
来自康健生活
| 第94行: | 第94行: | ||
{{Unknown|https://www.cnblogs.com/shiningrise/p/17877483.html}} | {{Unknown|https://www.cnblogs.com/shiningrise/p/17877483.html}} | ||
<syntaxhighlight lang="yaml"> | |||
kind: pipeline | |||
type: ssh | |||
name: Ssh-Runner | |||
server: | |||
host: xxxxx.org | |||
user: root | |||
password: | |||
from_secret: password | |||
steps: | |||
- name: list | |||
commands: | |||
- ls /var | |||
- name: npm | |||
environment: | |||
PATH: "$$PATH:/opt/node-v14.3.0-linux-x64/bin/" | |||
commands: | |||
- pwd | |||
- node --version | |||
- npm version | |||
- npm install | |||
</syntaxhighlight> | |||