Skip to content

Commit 8d17ac4

Browse files
committed
build for dockerhub through CI
1 parent 5b5e3aa commit 8d17ac4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.drone.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@ steps:
2323
when:
2424
branch: master
2525

26+
- name: dockerhub
27+
image: ayravat/rust:1.53.0-docker
28+
volumes:
29+
- name: ssh
30+
path: /root/.ssh
31+
- name: target
32+
path: /tmp/cargo-target
33+
- name: cache
34+
path: /tmp/cargo
35+
- name: docker
36+
path: /root/.docker
37+
- name: dockersock
38+
path: /var/run/docker.sock
39+
commands:
40+
- export CARGO_HOME=/tmp/cargo
41+
- export CARGO_TARGET_DIR=/tmp/cargo-target
42+
- sh deploy/deploy.sh dockerhub
43+
when:
44+
branch: master
45+
2646
volumes:
2747
- name: ssh
2848
host:
@@ -33,4 +53,10 @@ volumes:
3353
- name: cache
3454
host:
3555
path: /var/drone/cache/cargo
56+
- name: dockersock
57+
host:
58+
path: /var/run/docker.sock
59+
- name: docker
60+
host:
61+
path: /root/.docker
3662
...

0 commit comments

Comments
 (0)