feat: with shared volume
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
b23ca68c62
commit
be27bcfbcd
11
.drone.yml
11
.drone.yml
@ -5,10 +5,13 @@ type: docker
|
|||||||
steps:
|
steps:
|
||||||
- name: build ci
|
- name: build ci
|
||||||
image: rustlang/rust:nightly
|
image: rustlang/rust:nightly
|
||||||
|
volumes:
|
||||||
|
- name: ci
|
||||||
|
path: target/debug
|
||||||
commands:
|
commands:
|
||||||
- set -e
|
- set -e
|
||||||
- cargo build
|
- cargo build
|
||||||
|
|
||||||
- name: load_secret
|
- name: load_secret
|
||||||
image: debian:buster-slim
|
image: debian:buster-slim
|
||||||
volumes:
|
volumes:
|
||||||
@ -47,7 +50,6 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- "load_secret"
|
- "load_secret"
|
||||||
- "build ci"
|
- "build ci"
|
||||||
@ -60,6 +62,8 @@ steps:
|
|||||||
path: /root/.ssh/
|
path: /root/.ssh/
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
- name: ci
|
||||||
|
path: target/debug
|
||||||
commands:
|
commands:
|
||||||
- eval `ssh-agent`
|
- eval `ssh-agent`
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
@ -80,6 +84,7 @@ steps:
|
|||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- "load_secret"
|
||||||
- "build ci"
|
- "build ci"
|
||||||
|
|
||||||
- name: deploy release
|
- name: deploy release
|
||||||
@ -126,4 +131,6 @@ volumes:
|
|||||||
- name: ssh
|
- name: ssh
|
||||||
temp: {}
|
temp: {}
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
temp: {}
|
||||||
|
- name: ci
|
||||||
temp: {}
|
temp: {}
|
Loading…
Reference in New Issue
Block a user