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
@ -5,6 +5,9 @@ type: docker
|
||||
steps:
|
||||
- name: build ci
|
||||
image: rustlang/rust:nightly
|
||||
volumes:
|
||||
- name: ci
|
||||
path: target/debug
|
||||
commands:
|
||||
- set -e
|
||||
- cargo build
|
||||
@ -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
|
||||
@ -127,3 +132,5 @@ volumes:
|
||||
temp: {}
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
- name: ci
|
||||
temp: {}
|
Loading…
Reference in New Issue
Block a user