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:
|
||||
- name: build ci
|
||||
image: rustlang/rust:nightly
|
||||
volumes:
|
||||
- name: ci
|
||||
path: target/debug
|
||||
commands:
|
||||
- set -e
|
||||
- cargo build
|
||||
|
||||
|
||||
- name: load_secret
|
||||
image: debian:buster-slim
|
||||
volumes:
|
||||
@ -47,7 +50,6 @@ steps:
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
depends_on:
|
||||
- "load_secret"
|
||||
- "build ci"
|
||||
@ -60,6 +62,8 @@ steps:
|
||||
path: /root/.ssh/
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
- name: ci
|
||||
path: target/debug
|
||||
commands:
|
||||
- eval `ssh-agent`
|
||||
- chmod -R 600 ~/.ssh
|
||||
@ -80,6 +84,7 @@ steps:
|
||||
- main
|
||||
- master
|
||||
depends_on:
|
||||
- "load_secret"
|
||||
- "build ci"
|
||||
|
||||
- name: deploy release
|
||||
@ -126,4 +131,6 @@ volumes:
|
||||
- name: ssh
|
||||
temp: {}
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
- name: ci
|
||||
temp: {}
|
Loading…
Reference in New Issue
Block a user