-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
41 lines (38 loc) · 1.33 KB
/
.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
# workspace:
# base: /drone/src
# path: ./
pipeline:
build-master:
image: 'node:10.6.0'
commands:
- 'npm install'
- 'npm run build'
when:
branch: master
public-online:
image: plugins/docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- 'docker login --username=hesouli -p Cptbtptp123 registry.cn-beijing.aliyuncs.com'
- 'docker build --rm -t docker_test_02 .'
- 'docker tag docker_test_02 registry.cn-beijing.aliyuncs.com/my_docker_test_01/docker_test_02'
- 'docker push registry.cn-beijing.aliyuncs.com/my_docker_test_01/docker_test_02'
# - 'docker login --username=hesouli -p Cptbtptp123 registry.cn-beijing.aliyuncs.com'
# - 'docker build --rm -t one .'
# - 'docker tag one registry.cn-beijing.aliyuncs.com/panda-docker-test/one'
# - 'docker push registry.cn-beijing.aliyuncs.com/panda-docker-test/one'
when:
branch: master
rancher-online:
image: peloton/drone-rancher
url: 'https://rancher.11vx.cn'
access_key: B24653F95507063ACE6A
secret_key: seyTtWvHaAUXjuyQBxH5BarRXZcZDaKvb9epCZgM
service: app/app1
docker_image: 'registry.cn-beijing.aliyuncs.com/my_docker_test_01/docker_test_02'
start_first: false
confirm: true
timeout: 300
when:
branch: master