forked from do-community/hello_hapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
57 lines (52 loc) · 879 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
kind: pipeline
name: default
steps:
- name: ssh commands
image: appleboy/drone-ssh
settings:
host:
from_secret: myhost
username:
from_secret: myname
password:
from_secret: password
script:
- hostname
- echo world
- name: build
image: node:latest
commands:
- echo $${tr1}
- echo $${tr2}
- echo $${tr3}
- echo $${HOST}
- npm install -g npm@latest
environment:
tr1:
from_secret: docker_password
tr2:
from_secret: myname
tr3: sssss
- name: test
image: node:latest
commands:
- npm i
- npm run test
---
kind: secret
name: myhost
get:
path: docker/data/docker
name: myhost
---
kind: secret
name: myname
get:
path: docker/data/docker
name: username
---
kind: secret
name: password
get:
path: docker/data/docker
name: password